2019-03-01 13:46:30 +03:00
|
|
|
import chai from 'chai'
|
|
|
|
import Request from '../lib/request'
|
2019-02-08 13:31:38 +03:00
|
|
|
|
|
|
|
describe('#Request', function () {
|
2019-03-01 13:46:30 +03:00
|
|
|
let req = new Request({
|
2019-02-08 13:31:38 +03:00
|
|
|
host: 'http://api.example.com',
|
|
|
|
token: 'test_token'
|
|
|
|
});
|
|
|
|
|
|
|
|
it('Request parameters', function () {
|
|
|
|
chai.expect(req._host).to.equal('api.example.com');
|
|
|
|
chai.expect(req._token).to.equal('test_token');
|
|
|
|
})
|
|
|
|
});
|