mirror of
https://github.com/donl/plivo-node.git
synced 2026-05-25 22:07:10 -06:00
Changes in unit testing files
This commit is contained in:
parent
6f16819af8
commit
f617c20fd4
1 changed files with 6 additions and 0 deletions
|
|
@ -4,6 +4,12 @@ import {Client} from '../lib/rest/client-test';
|
|||
let client = new Client('sampleid', 'sammpletoken', 'sampleproxy');
|
||||
|
||||
describe('Token', function () {
|
||||
it('should get Token', function () {
|
||||
return client.token.get(1)
|
||||
.then(function(token) {
|
||||
assert.equal(token.app_id, 1)
|
||||
})
|
||||
});
|
||||
it('should create endpoint via interface', function () {
|
||||
return client.token.create('sampleid')
|
||||
.then(function(token){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue