mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
76794ac27a
* chore: add additional testing to esm and cjs smoke * test: updated test suite to include module tests * fix: esm test smoke import * fix: cubic feedback * fix: failing cjs * fix: cjs timeout
24 lines
626 B
JavaScript
24 lines
626 B
JavaScript
const axios = require('axios');
|
|
const { describe, it } = require('mocha');
|
|
const { expect } = require('chai');
|
|
|
|
const { CanceledError, AxiosError, AxiosHeaders } = axios;
|
|
|
|
describe('CommonJS importing', () => {
|
|
it('should import axios', () => {
|
|
expect(typeof axios).to.be.equal('function');
|
|
});
|
|
|
|
it('should import CanceledError', () => {
|
|
expect(typeof CanceledError).to.be.equal('function');
|
|
});
|
|
|
|
it('should import AxiosError', () => {
|
|
expect(typeof AxiosError).to.be.equal('function');
|
|
});
|
|
|
|
it('should import AxiosHeaders', () => {
|
|
expect(typeof AxiosHeaders).to.be.equal('function');
|
|
});
|
|
});
|