From b6a30b02775c1e30a355285d98c8b45a4513534c Mon Sep 17 00:00:00 2001 From: Muhammad Hamza Date: Tue, 30 May 2023 20:20:04 +0500 Subject: [PATCH] assert non-existence of other files as well --- tests/all/build.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/all/build.rs b/tests/all/build.rs index 11cc287..4b87e4f 100644 --- a/tests/all/build.rs +++ b/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]