File
Blob: src/workerd/tests/unknown-import-assertions-test.js
| 1 | // Copyright (c) 2025 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 { rejects } from 'node:assert'; |
| 5 | |
| 6 | export const test = { |
| 7 | async test() { |
| 8 | await rejects(import('worker', { with: { a: 'b' } }), { |
| 9 | message: /Unrecognized import attributes/, |
| 10 | }); |
| 11 | }, |
| 12 | }; |