@@ -16,7 +16,7 @@ func TestGetTrack(t *testing.T) {
1616 status , body := testGet (t , "/v1/full/tracks/eYJyn" , & trackResponse )
1717 assert .Equal (t , 200 , status )
1818
19- jsonAssert (t , body , map [string ]string {
19+ jsonAssert (t , body , map [string ]any {
2020 "data.id" : "eYJyn" ,
2121 "data.title" : "Culca Canyon" ,
2222 })
@@ -28,10 +28,10 @@ func TestGetTrackFollowDownloadAcess(t *testing.T) {
2828 }
2929 // No access
3030 _ , body1 := testGet (t , "/v1/full/tracks/eYRWn" , & trackResponse )
31- jsonAssert (t , body1 , map [string ]string {
31+ jsonAssert (t , body1 , map [string ]any {
3232 "data.title" : "Follow Gated Download" ,
33- "data.access.stream" : " true" ,
34- "data.access.download" : " false" ,
33+ "data.access.stream" : true ,
34+ "data.access.download" : false ,
3535 })
3636
3737 // With access
@@ -41,10 +41,10 @@ func TestGetTrackFollowDownloadAcess(t *testing.T) {
4141 "0x4954d18926ba0ed9378938444731be4e622537b2" ,
4242 & trackResponse ,
4343 )
44- jsonAssert (t , body2 , map [string ]string {
44+ jsonAssert (t , body2 , map [string ]any {
4545 "data.title" : "Follow Gated Download" ,
46- "data.access.stream" : " true" ,
47- "data.access.download" : " true" ,
46+ "data.access.stream" : true ,
47+ "data.access.download" : true ,
4848 })
4949}
5050
@@ -54,10 +54,10 @@ func TestGetTrackTipStreamAccess(t *testing.T) {
5454 }
5555 // No access
5656 _ , body1 := testGet (t , "/v1/full/tracks/L5x7n" , & trackResponse )
57- jsonAssert (t , body1 , map [string ]string {
57+ jsonAssert (t , body1 , map [string ]any {
5858 "data.title" : "Tip Gated Stream" ,
59- "data.access.stream" : " false" ,
60- "data.access.download" : " false" ,
59+ "data.access.stream" : false ,
60+ "data.access.download" : false ,
6161 })
6262
6363 // With access
@@ -67,10 +67,10 @@ func TestGetTrackTipStreamAccess(t *testing.T) {
6767 "0x4954d18926ba0ed9378938444731be4e622537b2" ,
6868 & trackResponse ,
6969 )
70- jsonAssert (t , body2 , map [string ]string {
70+ jsonAssert (t , body2 , map [string ]any {
7171 "data.title" : "Tip Gated Stream" ,
72- "data.access.stream" : " true" ,
73- "data.access.download" : " true" ,
72+ "data.access.stream" : true ,
73+ "data.access.download" : true ,
7474 })
7575}
7676
@@ -80,10 +80,10 @@ func TestGetTrackUsdcPurchaseStreamAccess(t *testing.T) {
8080 }
8181 // No access
8282 _ , body1 := testGet (t , "/v1/full/tracks/ebdJL" , & trackResponse )
83- jsonAssert (t , body1 , map [string ]string {
83+ jsonAssert (t , body1 , map [string ]any {
8484 "data.title" : "Pay Gated Stream" ,
85- "data.access.stream" : " false" ,
86- "data.access.download" : " false" ,
85+ "data.access.stream" : false ,
86+ "data.access.download" : false ,
8787 })
8888
8989 // With access
@@ -93,10 +93,10 @@ func TestGetTrackUsdcPurchaseStreamAccess(t *testing.T) {
9393 "0x855d28d495ec1b06364bb7a521212753e2190b95" ,
9494 & trackResponse ,
9595 )
96- jsonAssert (t , body2 , map [string ]string {
96+ jsonAssert (t , body2 , map [string ]any {
9797 "data.title" : "Pay Gated Stream" ,
98- "data.access.stream" : " true" ,
99- "data.access.download" : " true" ,
98+ "data.access.stream" : true ,
99+ "data.access.download" : true ,
100100 })
101101}
102102
@@ -119,9 +119,9 @@ func TestGetTrackUsdcPurchaseSelfAccess(t *testing.T) {
119119 "0xc3d1d41e6872ffbd15c473d14fc3a9250be5b5e0" ,
120120 & trackResponse ,
121121 )
122- jsonAssert (t , body2 , map [string ]string {
122+ jsonAssert (t , body2 , map [string ]any {
123123 "data.title" : "Pay Gated Stream" ,
124- "data.access.stream" : " true" ,
125- "data.access.download" : " true" ,
124+ "data.access.stream" : true ,
125+ "data.access.download" : true ,
126126 })
127127}
0 commit comments