update: rebasing to master

fixes conflicts encountered when rebasing to master

fixes # 390
master
huangjj27 7 years ago
parent cf56fa10d6
commit b301015588
  1. 3
      src/bindgen.rs
  2. 12
      tests/all/build.rs

@ -8,11 +8,8 @@ use failure::{self, ResultExt};
use manifest::CrateData; use manifest::CrateData;
use progressbar::Step; use progressbar::Step;
use slog::Logger; use slog::Logger;
<<<<<<< HEAD
use std::fs; use std::fs;
=======
use std::env; use std::env;
>>>>>>> bugfix(command/build): passing test case
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
use std::process::Command; use std::process::Command;
use target; use target;

@ -34,7 +34,6 @@ fn it_should_build_js_hello_world_example() {
&fixture.path.display().to_string(), &fixture.path.display().to_string(),
]) ])
.unwrap(); .unwrap();
<<<<<<< HEAD
fixture.run(cli.cmd).unwrap(); fixture.run(cli.cmd).unwrap();
} }
@ -139,11 +138,6 @@ fn it_should_build_nested_project_with_transitive_dependencies() {
]) ])
.unwrap(); .unwrap();
fixture.run(cli.cmd).unwrap(); fixture.run(cli.cmd).unwrap();
=======
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.");
>>>>>>> bugfix(command/build): passing test case
} }
#[test] #[test]
@ -243,15 +237,9 @@ fn it_format_out_dir_on_windows() {
"build", "build",
&fixture.path.display().to_string(), &fixture.path.display().to_string(),
]) ])
<<<<<<< HEAD
let logger = logger::new(&cli.cmd, 1).unwrap(); let logger = logger::new(&cli.cmd, 1).unwrap();
let _result = let _result =
command::run_wasm_pack(cli.cmd, &logger).expect("js_hello_world example should pass"); command::run_wasm_pack(cli.cmd, &logger).expect("js_hello_world example should pass");
=======
.unwrap();
let result = command::run_wasm_pack(cli.cmd, &logger);
assert!(result.is_ok(), "js_hello_world example should pass");
>>>>>>> bugfix(command/build): passing test case
let wasm_pack_log = utils::file::read_file(&fixture.path.join("wasm-pack.log")).unwrap(); let wasm_pack_log = utils::file::read_file(&fixture.path.join("wasm-pack.log")).unwrap();
assert!( assert!(

Loading…
Cancel
Save