check if the log missing things

master
huangjj27 7 years ago
parent 06a949b9ed
commit 9feb3a857c
  1. 8
      tests/all/build.rs

@ -243,6 +243,14 @@ fn it_format_out_dir_on_windows() {
fixture.run(cli.cmd).unwrap();
let wasm_pack_log = utils::file::read_file(&fixture.path.join("wasm-pack.log")).unwrap();
assert!(
wasm_pack_log.contains("INFO"),
"wasm-pack.log should contains INFO message"
);
assert!(
wasm_pack_log.contains("Your wasm pkg is ready to publish at"),
"wasm-pack.log should contains publish message"
);
assert!(
wasm_pack_log.contains(r"Your wasm pkg is ready to publish at C:\Users\"),
"directories in wasm-pack.log should be well formatted",

Loading…
Cancel
Save