diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2021-12-08 19:12:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-08 19:12:14 -0500 |
| commit | 1507b8c9843262d6514ed61fdba115671dfb7bfe (patch) | |
| tree | 963e47cf71c5f4bdd457308c3f82becc106c9d27 /cli/tests/testdata/compiler_api_test.ts | |
| parent | 318f48f9adc486e95dcc5f86fd0a1848c6df51f6 (diff) | |
fix: upgrade swc fixing many bundling and `--no-check` bugs (#13025)
Diffstat (limited to 'cli/tests/testdata/compiler_api_test.ts')
| -rw-r--r-- | cli/tests/testdata/compiler_api_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/tests/testdata/compiler_api_test.ts b/cli/tests/testdata/compiler_api_test.ts index 42d6f54eb..b9755c29a 100644 --- a/cli/tests/testdata/compiler_api_test.ts +++ b/cli/tests/testdata/compiler_api_test.ts @@ -2,8 +2,8 @@ import { assert, assertEquals, + assertRejects, assertStringIncludes, - assertThrowsAsync, } from "../../../test_util/std/testing/asserts.ts"; Deno.test({ @@ -268,7 +268,7 @@ Deno.test({ Object.keys(files).sort(), ["deno:///bundle.js", "deno:///bundle.js.map"].sort(), ); - assert(files["deno:///bundle.js"].includes(`const bar1 = "bar"`)); + assert(files["deno:///bundle.js"].includes(`const bar = "bar"`)); }, }); @@ -312,7 +312,7 @@ Deno.test({ Object.keys(files).sort(), ["deno:///bundle.js.map", "deno:///bundle.js"].sort(), ); - assert(files["deno:///bundle.js"].includes(`const bar1 = "bar"`)); + assert(files["deno:///bundle.js"].includes(`const bar = "bar"`)); }, }); @@ -430,7 +430,7 @@ Deno.test({ Deno.test({ name: `Deno.emit() - throws descriptive error when unable to load import map`, async fn() { - await assertThrowsAsync( + await assertRejects( async () => { await Deno.emit("/a.ts", { bundle: "classic", @@ -566,7 +566,7 @@ Deno.test({ { sources: { "file:///a.tsx": `/** @jsxImportSource https://example.com/jsx */ - + export function App() { return ( <div><></></div> |
