2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-18 12:39:44 +03:00
Files
axios/test/specs/adapter.spec.js
T
2016-03-04 10:35:05 -07:00

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);
});
});