UNPKG

put.io-node

Version:

A Node.js wrapper for put.io APIv2 http://put.io

18 lines 644 B
"use strict"; const Module = require('../../ts/index'); const chai_1 = require('chai'); describe('Put.io Client', () => { describe('Client Object', () => { const putioClient = new Module.Client('testToken'); it('Should be able to get oAuth token', (done) => { chai_1.expect(putioClient.oAuthToken).to.equal('testToken'); done(); }); it('Should be able to set oAuth token', (done) => { putioClient.oAuthToken = 'newToken'; chai_1.expect(putioClient.oAuthToken).to.equal('newToken'); done(); }); }); }); //# sourceMappingURL=Client.js.map