Skip to content

Commit ff0409a

Browse files
committed
Fix tests
1 parent 820eea1 commit ff0409a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cli/args/flags.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -9497,6 +9497,7 @@ mod tests {
94979497
args: vec![],
94989498
target: None,
94999499
no_terminal: false,
9500+
icon: None,
95009501
include: vec![]
95019502
}),
95029503
type_check_mode: TypeCheckMode::Local,
@@ -9508,7 +9509,7 @@ mod tests {
95089509
#[test]
95099510
fn compile_with_flags() {
95109511
#[rustfmt::skip]
9511-
let r = flags_from_vec(svec!["deno", "compile", "--import-map", "import_map.json", "--no-remote", "--config", "tsconfig.json", "--no-check", "--unsafely-ignore-certificate-errors", "--reload", "--lock", "lock.json", "--lock-write", "--cert", "example.crt", "--cached-only", "--location", "https:foo", "--allow-read", "--allow-net", "--v8-flags=--help", "--seed", "1", "--no-terminal", "--output", "colors", "--env=.example.env", "https://examples.deno.land/color-logging.ts", "foo", "bar", "-p", "8080"]);
9512+
let r = flags_from_vec(svec!["deno", "compile", "--import-map", "import_map.json", "--no-remote", "--config", "tsconfig.json", "--no-check", "--unsafely-ignore-certificate-errors", "--reload", "--lock", "lock.json", "--lock-write", "--cert", "example.crt", "--cached-only", "--location", "https:foo", "--allow-read", "--allow-net", "--v8-flags=--help", "--seed", "1", "--no-terminal", "--icon", "favicon.ico", "--output", "colors", "--env=.example.env", "https://examples.deno.land/color-logging.ts", "foo", "bar", "-p", "8080"]);
95129513
assert_eq!(
95139514
r.unwrap(),
95149515
Flags {
@@ -9519,6 +9520,7 @@ mod tests {
95199520
args: svec!["foo", "bar", "-p", "8080"],
95209521
target: None,
95219522
no_terminal: true,
9523+
icon: Some(String::from("favicon.ico")),
95229524
include: vec![]
95239525
}),
95249526
import_map_path: Some("import_map.json".to_string()),

cli/tools/compile.rs

+2
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ mod test {
361361
args: Vec::new(),
362362
target: Some("x86_64-unknown-linux-gnu".to_string()),
363363
no_terminal: false,
364+
icon: None,
364365
include: vec![],
365366
},
366367
&std::env::current_dir().unwrap(),
@@ -385,6 +386,7 @@ mod test {
385386
args: Vec::new(),
386387
target: Some("x86_64-pc-windows-msvc".to_string()),
387388
include: vec![],
389+
icon: None,
388390
no_terminal: false,
389391
},
390392
&std::env::current_dir().unwrap(),

0 commit comments

Comments
 (0)