test(bindgen): add test.. which passes but shouldn't

master
Ashley Williams 6 years ago
parent 5b043251b5
commit fdde7291ca
  1. 42
      tests/all/build.rs

@ -104,6 +104,48 @@ fn renamed_crate_name_works() {
fixture.wasm_pack().arg("build").assert().success();
}
#[test]
fn dash_dash_web_target_has_error_on_old_bindgen() {
let fixture = utils::fixture::Fixture::new();
fixture
.readme()
.file(
"Cargo.toml",
r#"
[package]
name = "foo"
version = "0.1.0"
authors = []
[lib]
crate-type = ["cdylib"]
name = 'bar'
[dependencies]
wasm-bindgen = "0.2.37"
"#,
)
.file(
"src/lib.rs",
r#"
extern crate wasm_bindgen;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn one() -> u32 { 1 }
"#,
)
.install_local_wasm_bindgen();
fixture
.wasm_pack()
.arg("build")
.arg("--target")
.arg("web")
.assert()
.success()
.stdout("");
}
#[test]
fn it_should_build_nested_project_with_transitive_dependencies() {
let fixture = utils::fixture::transitive_dependencies();

Loading…
Cancel
Save