File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
- import { assertEquals } from "@std/assert/assert-equals " ;
1
+ import { assertEquals , assertStringIncludes } from "@std/assert" ;
2
2
import { stripAnsiCode } from "@std/fmt/colors" ;
3
3
import { describe , it } from "@std/testing/bdd" ;
4
4
import dedent from "dedent" ;
@@ -246,11 +246,12 @@ describe("CLI", () => {
246
246
) ;
247
247
} ) ;
248
248
249
- // FIXME: The list of files only includes `deno.jsonc`
250
- it . ignore ( "should find updates to a lock file with `--unstable-lock` option" , async ( ) => {
251
- const { stdout, stderr } = await molt (
249
+ // FIXME: Abandon the stub for `fetch` to test this feature.
250
+ it ( "should find updates to a lock file with `--unstable-lock` option" , async ( ) => {
251
+ const { code , stdout, stderr } = await molt (
252
252
"mod_test.ts --unstable-lock --import-map deno.jsonc --write" ,
253
253
) ;
254
+ assertEquals ( code , 1 ) ;
254
255
assertEquals (
255
256
stdout ,
256
257
dedent `
@@ -265,11 +266,14 @@ describe("CLI", () => {
265
266
deno.lock
266
267
267
268
💾 deno.jsonc
268
- 💾 deno.lock
269
- 💾 mod_test.ts
270
- 💾 mod.ts
271
269
` ,
270
+ ) ;
271
+ assertStringIncludes (
272
272
stderr ,
273
+ dedent `
274
+ Error: Download https://deno.land/x/deno_graph@123.456.789/mod.ts
275
+ error: Module not found "https://deno.land/x/deno_graph@123.456.789/mod.ts".
276
+ ` ,
273
277
) ;
274
278
} ) ;
275
279
} ) ;
You can’t perform that action at this time.
0 commit comments