mirror of
https://github.com/donl/plivo-node.git
synced 2026-05-25 22:07:10 -06:00
22 lines
692 B
JavaScript
22 lines
692 B
JavaScript
import assert from 'assert';
|
|
import sinon from 'sinon';
|
|
import {
|
|
Client
|
|
} from '../lib/rest/client-test';
|
|
import {
|
|
PlivoGenericResponse
|
|
} from '../lib/base.js';
|
|
|
|
let client = new Client('sampleid', 'sammpletoken', 'sampleproxy');
|
|
|
|
describe('LookupInterface', function() {
|
|
it('should lookup number', function() {
|
|
return client.lookup.get('+14154305555')
|
|
.then(function(number) {
|
|
console.log(number)
|
|
assert.equal(number.format.e164, '+14154305555')
|
|
assert.equal(number.phoneNumber, '+14154305555')
|
|
assert.equal(number.resourceUri, '/v1/Number/+14154305555?type=carrier')
|
|
})
|
|
});
|
|
});
|