Skip to content

Commit

Permalink
test(command/build): right test case
Browse files Browse the repository at this point in the history
the test case would pass after solving rustwasm#408
  • Loading branch information
huangjj27 committed Oct 20, 2018
1 parent 9d95a0d commit 78a5ab5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/all/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ fn it_should_build_js_hello_world_example() {
&fixture.path.display().to_string(),
])
.unwrap();
<<<<<<< HEAD
let logger = logger::new(&cli.cmd, cli.verbosity).unwrap();
command::run_wasm_pack(cli.cmd, &logger)
.expect("running wasm-pack in a js-hello-world directory should succeed.");
Expand All @@ -48,6 +49,11 @@ fn it_format_out_dir_on_windows() {
])
let result = command::run_wasm_pack(cli.cmd, &logger);
assert!(result.is_ok(), "js_hello_world example should pass");
=======
let logger = logger::new(&cli.cmd, 1).unwrap();
let _result =
command::run_wasm_pack(cli.cmd, &logger).expect("js_hello_world example should pass");
>>>>>>> test(command/build): right test case

let wasm_pack_log = utils::file::read_file(&fixture.path.join("wasm-pack.log")).unwrap();
assert!(
Expand Down

0 comments on commit 78a5ab5

Please sign in to comment.