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
c946ab3185
commit
6f16819af8
1 changed files with 13 additions and 0 deletions
13
test/token.js
Normal file
13
test/token.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import assert from 'assert';
|
||||
import {Client} from '../lib/rest/client-test';
|
||||
|
||||
let client = new Client('sampleid', 'sammpletoken', 'sampleproxy');
|
||||
|
||||
describe('Token', function () {
|
||||
it('should create endpoint via interface', function () {
|
||||
return client.token.create('sampleid')
|
||||
.then(function(token){
|
||||
assert.equal(token.token, 'created')
|
||||
})
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue