Changes in token creation

This commit is contained in:
kowshik-plivo 2022-08-12 03:47:17 +05:30
parent b8b1d5407c
commit 5519e14f44

View file

@ -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')
})
});
});
}