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.
 
 
wasm-pack/tests/all/generate.rs

21 lines
483 B

use crate::utils;
use assert_cmd::prelude::*;
#[test]
fn new_with_no_name_errors() {
let fixture = utils::fixture::not_a_crate();
fixture.install_local_cargo_generate();
fixture.wasm_pack().arg("new").assert().failure();
}
#[test]
fn new_with_name_succeeds() {
let fixture = utils::fixture::not_a_crate();
fixture.install_local_cargo_generate();
fixture
.wasm_pack()
.arg("new")
.arg("hello")
.assert()
.success();
}