File
Blob: src/workerd/api/tests/module-test.js
| 1 | // Copyright (c) 2024 Cloudflare, Inc. |
| 2 | // Licensed under the Apache 2.0 license found in the LICENSE file or at: |
| 3 | // https://opensource.org/licenses/Apache-2.0 |
| 4 | import * as assert from 'a/b/c'; |
| 5 | import * as assert3 from 'node:assert'; |
| 6 | |
| 7 | export const basics = { |
| 8 | async test() { |
| 9 | const assert2 = await import('a/b/c'); |
| 10 | if (assert !== assert2 && assert !== assert3) { |
| 11 | throw new Error('bad things happened'); |
| 12 | } |
| 13 | }, |
| 14 | }; |