mirror of
https://github.com/tenrok/axios.git
synced 2026-05-21 13:24:11 +03:00
17 lines
606 B
JavaScript
17 lines
606 B
JavaScript
import assert from 'assert';
|
|
import axios, {CanceledError, AxiosError, AxiosHeaders} from 'axios';
|
|
import settle from 'axios/unsafe/core/settle.js';
|
|
|
|
assert.strictEqual(typeof axios, 'function');
|
|
assert.strictEqual(typeof CanceledError, 'function');
|
|
assert.strictEqual(typeof AxiosError, 'function');
|
|
assert.strictEqual(typeof AxiosHeaders, 'function');
|
|
|
|
assert.strictEqual(axios.CanceledError, CanceledError);
|
|
assert.strictEqual(axios.AxiosError, AxiosError);
|
|
assert.strictEqual(axios.AxiosHeaders, AxiosHeaders);
|
|
|
|
assert.strictEqual(typeof settle, 'function');
|
|
|
|
console.log('ESM importing test passed');
|