2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00
Files
axios/tests/smoke/deno/tests/import.smoke.test.ts
T
Jay 2f52f6b13b feat: add checks to support deno and bun (#10652)
* feat: added smoke tests for deno

* feat: added bun smoke tests

* chore: added workflows for deno and bun

* chore: swap workflow implementation

* chore: apply ai suggestion

* chore: test alt install of bun deps

* chore: deno install

* chore: map bun file install

* chore: try a different approach for bun

* chore: unpack and then install for bun

* chore: remove un-needed step

* chore: try with tgx again for bun

* chore: alternative zip approach

* ci: full ci added back
2026-04-05 14:37:16 +02:00

19 lines
670 B
TypeScript

import { assertEquals } from '@std/assert';
import axios, { AxiosError, AxiosHeaders, CanceledError } from 'axios';
Deno.test('Deno importing: default export is callable', () => {
assertEquals(typeof axios, 'function');
});
Deno.test('Deno importing: named exports are functions', () => {
assertEquals(typeof AxiosError, 'function');
assertEquals(typeof CanceledError, 'function');
assertEquals(typeof AxiosHeaders, 'function');
});
Deno.test('Deno importing: named exports match axios properties', () => {
assertEquals(axios.AxiosError, AxiosError);
assertEquals(axios.CanceledError, CanceledError);
assertEquals(axios.AxiosHeaders, AxiosHeaders);
});