fork of https://github.com/rustwasm/wasm-pack for the needs of NextGraph.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
428 B
428 B
extern crate wasm_pack;
use std::fs;
use wasm_pack::readme;
#[test]
fn it_copies_a_readme_default_path() {
assert!(readme::copy_from_crate(".").is_ok());
assert!(fs::metadata("./pkg/README.md").is_ok());
}
#[test]
fn it_creates_a_package_json_provided_path() {
assert!(readme::copy_from_crate("./examples/js-hello-world").is_ok());
assert!(fs::metadata("./examples/js-hello-world/pkg/README.md").is_ok());
}