2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00
Files
axios/tests/smoke/cjs/tests/import.smoke.test.cjs
T
Jay 76794ac27a chore: update module test for full check (#7510)
* 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
2026-03-15 21:10:52 +02:00

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