Skip to content

Commit f3926e0

Browse files
committed
updated links test
1 parent e044445 commit f3926e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/lib/resources/links-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)