put.io-node
Version:
A Node.js wrapper for put.io APIv2 http://put.io
21 lines (16 loc) • 619 B
text/typescript
import * as Module from '../../ts/index';
import {expect} from 'chai';
describe ('Put.io Client', () => {
describe('Client Object', () => {
const putioClient: Module.Client = new Module.Client('testToken');
it('Should be able to get oAuth token', (done: Function) => {
expect(putioClient.oAuthToken).to.equal('testToken');
done();
});
it('Should be able to set oAuth token', (done: Function) => {
putioClient.oAuthToken = 'newToken';
expect(putioClient.oAuthToken).to.equal('newToken');
done();
});
});
});