@@ -62,7 +62,7 @@ describe("Source", function() {
6262
6363 it ( "should return source with data" , function ( ) {
6464 nock ( "https://api.tinify.com" )
65- . post ( "/some/location" )
65+ . get ( "/some/location" )
6666 . reply ( 200 , "compressed file" )
6767
6868 const data = tinify . Source . fromFile ( dummyFile ) . toBuffer ( )
@@ -86,7 +86,7 @@ describe("Source", function() {
8686
8787 it ( "should return source with data" , function ( ) {
8888 nock ( "https://api.tinify.com" )
89- . post ( "/some/location" )
89+ . get ( "/some/location" )
9090 . reply ( 200 , "compressed file" )
9191
9292 const data = tinify . Source . fromBuffer ( "png file" ) . toBuffer ( )
@@ -112,7 +112,7 @@ describe("Source", function() {
112112 . reply ( 201 , { } , { location : "https://api.tinify.com/some/location" } )
113113
114114 nock ( "https://api.tinify.com" )
115- . post ( "/some/location" )
115+ . get ( "/some/location" )
116116 . reply ( 200 , "compressed file" )
117117
118118 const data = tinify . Source . fromUrl ( "http://example.com/test.jpg" ) . toBuffer ( )
@@ -139,7 +139,7 @@ describe("Source", function() {
139139 . reply ( 201 , { } , { location : "https://api.tinify.com/some/location" } )
140140
141141 nock ( "https://api.tinify.com" )
142- . post ( "/some/location" )
142+ . get ( "/some/location" )
143143 . reply ( 200 , "compressed file" )
144144 } )
145145
@@ -257,7 +257,7 @@ describe("Source", function() {
257257 . reply ( 201 , { } , { location : "https://api.tinify.com/some/location" } )
258258
259259 nock ( "https://api.tinify.com" )
260- . post ( "/some/location" )
260+ . get ( "/some/location" )
261261 . reply ( 200 , "compressed file" )
262262 } )
263263
@@ -276,7 +276,7 @@ describe("Source", function() {
276276 . reply ( 201 , { } , { location : "https://api.tinify.com/some/location" } )
277277
278278 nock ( "https://api.tinify.com" )
279- . post ( "/some/location" )
279+ . get ( "/some/location" )
280280 . reply ( 200 , "compressed file" )
281281 } )
282282
0 commit comments