|
|
@ -11,7 +11,7 @@ fn it_gets_the_crate_name_default_path() { |
|
|
|
#[test] |
|
|
|
#[test] |
|
|
|
fn it_gets_the_crate_name_provided_path() { |
|
|
|
fn it_gets_the_crate_name_provided_path() { |
|
|
|
assert!(wasm_pack::get_crate_name("./examples/js-hello-world").is_ok()); |
|
|
|
assert!(wasm_pack::get_crate_name("./examples/js-hello-world").is_ok()); |
|
|
|
assert_eq!(wasm_pack::get_crate_name(".").unwrap(), "js-hello-world"); |
|
|
|
assert_eq!(wasm_pack::get_crate_name("./examples/js-hello-world").unwrap(), "js-hello-world"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
#[test] |
|
|
|