mirror of
https://github.com/tenrok/axios.git
synced 2026-05-30 15:24:11 +03:00
21 lines
373 B
JavaScript
21 lines
373 B
JavaScript
var axios = require('../../index');
|
|
|
|
describe('adapter', function () {
|
|
it('should support custom adapter', function (done) {
|
|
var called = false;
|
|
|
|
axios({
|
|
url: '/foo',
|
|
adapter: function (resolve, reject, config) {
|
|
called = true;
|
|
}
|
|
});
|
|
|
|
setTimeout(function () {
|
|
expect(called).toBe(true);
|
|
done();
|
|
}, 0);
|
|
});
|
|
});
|
|
|