mirror of
https://github.com/tenrok/axios.git
synced 2026-05-18 12:39:44 +03:00
20 lines
364 B
JavaScript
20 lines
364 B
JavaScript
var axios = require('../../index');
|
|
|
|
describe('adapter', function () {
|
|
it('should support custom adapter', function (done) {
|
|
var called = false;
|
|
|
|
axios('/foo', {
|
|
adapter: function (resolve, reject, config) {
|
|
called = true;
|
|
}
|
|
});
|
|
|
|
setTimeout(function () {
|
|
expect(called).toBe(true);
|
|
done();
|
|
}, 100);
|
|
});
|
|
});
|
|
|