mirror of
https://github.com/donl/plivo-node.git
synced 2026-06-30 06:12:08 -06:00
Changes in token creation
This commit is contained in:
parent
b8b1d5407c
commit
5519e14f44
1 changed files with 6 additions and 4 deletions
|
|
@ -1,13 +1,15 @@
|
|||
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('JWT/Token', function () {
|
||||
it('should create endpoint via interface', function () {
|
||||
describe('Token', function () {
|
||||
it('should create token via interface', function () {
|
||||
return client.token.create('sampleid')
|
||||
.then(function(token){
|
||||
.then(function (token) {
|
||||
assert.equal(token.token, 'created')
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue