Skip to content

Commit

Permalink
use retrieve for resource method
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasassisrosa committed Jul 8, 2020
1 parent 9f8dd29 commit d94f383
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/resources/Balance.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var TelnyxResource = require('../TelnyxResource');
module.exports = TelnyxResource.extend({
path: 'balance',

get: TelnyxResource.method({
retrieve: TelnyxResource.method({
method: 'GET',
})
});
4 changes: 2 additions & 2 deletions test/resources/Balance.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var telnyx = require('../../testUtils').getTelnyxMock();
var expect = require('chai').expect;

describe('Balance Resource', function() {
describe('get', function() {
describe('retrieve', function() {
it('Sends the correct request', function() {
return telnyx.balance.get()
return telnyx.balance.retrieve()
.then(function(response) {
expect(response.data).to.include({record_type: 'balance'});
expect(response.data).to.have.property('balance');
Expand Down

0 comments on commit d94f383

Please sign in to comment.