15 lines
372 B
JavaScript
15 lines
372 B
JavaScript
import chai from 'chai'
|
|
import Request from '../lib/request'
|
|
|
|
describe('#Request', function () {
|
|
let req = new Request({
|
|
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');
|
|
})
|
|
});
|