1
0
mirror of synced 2024-11-24 21:36:02 +03:00
mg-bot-api-client-js/tests/test_request.js
2019-02-08 13:32:10 +03:00

15 lines
388 B
JavaScript

var chai = require('chai');
var request = require('../lib/request');
describe('#Request', function () {
var req = new request.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');
})
});