summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bundle/test.ts4
-rw-r--r--bundle/utils.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/bundle/test.ts b/bundle/test.ts
index b66c782bc..d618e202b 100644
--- a/bundle/test.ts
+++ b/bundle/test.ts
@@ -64,7 +64,7 @@ fixtureModules.set("modA", {
});
test(async function loadBundle(): Promise<void> {
- const result = await load(["", "./bundle/testdata/bundle.js"]);
+ const result = await load(["", "./bundle/testdata/bundle.js", "--foo"]);
assert(result != null);
assert(
result.includes(
@@ -79,7 +79,7 @@ test(async function loadBadArgs(): Promise<void> {
await load(["bundle/test.ts"]);
},
AssertionError,
- "Expected exactly two arguments."
+ "Expected at least two arguments."
);
});
diff --git a/bundle/utils.ts b/bundle/utils.ts
index 93983e47c..80b00b6fa 100644
--- a/bundle/utils.ts
+++ b/bundle/utils.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import { assertStrictEq, assert } from "../testing/asserts.ts";
+import { assert } from "../testing/asserts.ts";
import { exists } from "../fs/exists.ts";
export interface DefineFactory {
@@ -98,7 +98,7 @@ export function instantiate(
/** Load the bundle and return the contents asynchronously. */
export async function load(args: string[]): Promise<string> {
// TODO(kitsonk) allow loading of remote bundles via fetch.
- assertStrictEq(args.length, 2, "Expected exactly two arguments.");
+ assert(args.length >= 2, "Expected at least two arguments.");
const [, bundleFileName] = args;
assert(
await exists(bundleFileName),