assert non-existence of other files as well

master
Muhammad Hamza 2 years ago
parent cf6b08852d
commit b6a30b0277
No known key found for this signature in database
GPG Key ID: B7812BE5DBACA4E0
  1. 6
      tests/all/build.rs

@ -31,8 +31,10 @@ fn it_should_not_make_a_pkg_json_if_passed_no_pack() {
.assert()
.success();
let pkg_json_path = fixture.path.join("pkg").join("package.json");
assert_eq!(pkg_json_path.exists(), false);
let pkg_path = fixture.path.join("pkg");
assert_eq!(pkg_path.join("package.json").exists(), false);
assert_eq!(pkg_path.join("README.md").exists(), false);
assert_eq!(pkg_path.join("licence").exists(), false);
}
#[test]

Loading…
Cancel
Save