File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -98,12 +98,12 @@ describe('lib/resources/links', function() {
9898 } ;
9999
100100 this . scope = nock ( 'https://api.usebutton.com:443' )
101- . post ( '/v1/links' , this . payload )
101+ . post ( '/v1/links/info ' , this . payload )
102102 . reply ( 200 , { meta : { status : 'ok' } , 'object' : this . link } ) ;
103103 } ) ;
104104
105105 it ( 'gets information for a link with a callback' , function ( done ) {
106- this . callbackClient . create ( this . payload , function ( err , res ) {
106+ this . callbackClient . getInfo ( this . payload , function ( err , res ) {
107107 expect ( err ) . to . be ( null ) ;
108108 expect ( res . data ) . to . eql ( this . link ) ;
109109 this . scope . done ( ) ;
@@ -112,7 +112,7 @@ describe('lib/resources/links', function() {
112112 } ) ;
113113
114114 it ( 'gets information for a link with a promise' , function ( done ) {
115- this . promiseClient . create ( this . payload ) . then ( function ( result ) {
115+ this . promiseClient . getInfo ( this . payload ) . then ( function ( result ) {
116116 expect ( result . data ) . to . eql ( this . link ) ;
117117 this . scope . done ( ) ;
118118 done ( ) ;
You can’t perform that action at this time.
0 commit comments