Skip to content
File

Blob: src/workerd/tests/unknown-import-assertions-test.js

javascript13 lines
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
4import { rejects } from 'node:assert';
5 
6export const test = {
7 async test() {
8 await rejects(import('worker', { with: { a: 'b' } }), {
9 message: /Unrecognized import attributes/,
10 });
11 },
12};