| 1 |
import dep1 from "./dep1.js"; |
| 2 |
import dep2 from "./dep2.js"; |
| 3 |
import * as dep3 from "./dep3.js"; |
| 4 |
import * as dep4 from "./dep4.js"; |
| 5 |
import dep5 from "./dep5.js"; |
| 6 |
import dep6 from "./dep6.js"; |
| 7 |
import { named as dep7 } from "./dep7.js"; |
| 8 |
import { named as dep8 } from "./dep8.js"; |
| 9 |
|
| 10 |
expect(typeof dep1).toBe("function"); |
| 11 |
expect(dep1()).toBe(1); |
| 12 |
|
| 13 |
expect(typeof dep2).toBe("function"); |
| 14 |
expect(dep2()).toBe(2); |
| 15 |
|
| 16 |
expect(typeof dep3).toBe("object"); |
| 17 |
expect(typeof dep3.default).toBe("function"); |
| 18 |
expect(dep3.default()).toBe(3); |
| 19 |
|
| 20 |
expect(typeof dep4).toBe("object"); |
| 21 |
expect(typeof dep4.default).toBe("function"); |
| 22 |
expect(dep4.default()).toBe(4); |
| 23 |
|
| 24 |
expect(typeof dep5).toBe("object"); |
| 25 |
expect(typeof dep5.default).toBe("function"); |
| 26 |
expect(dep5.default()).toBe(5); |
| 27 |
|
| 28 |
expect(typeof dep6).toBe("object"); |
| 29 |
expect(typeof dep6.default).toBe("function"); |
| 30 |
expect(dep6.default()).toBe(6); |
| 31 |
|
| 32 |
expect(typeof dep7).toBe("function"); |
| 33 |
expect(dep7()).toBe(7); |
| 34 |
|
| 35 |
expect(typeof dep8).toBe("function"); |
| 36 |
expect(dep8()).toBe(8); |