Skip to content

Commit 9335d4b

Browse files
committed
improve test from new project scripts
1 parent 2144201 commit 9335d4b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/smoke/project/project-prepost.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ import { docs } from "../../utils.ts";
99
import { join } from "../../../src/deno_ral/path.ts";
1010
import { existsSync } from "../../../src/deno_ral/fs.ts";
1111
import { testQuartoCmd } from "../../test.ts";
12-
import { fileExists, noErrors, printsMessage } from "../../verify.ts";
13-
import { assert } from "testing/asserts.ts";
12+
import { fileExists, noErrors, printsMessage, verifyNoPath } from "../../verify.ts";
1413
import { safeRemoveIfExists } from "../../../src/core/path.ts";
1514

1615
const renderDir = docs("project/prepost/mutate-render-list");
@@ -68,7 +67,7 @@ testQuartoCmd(
6867
name: "i-exist.txt exists",
6968
verify: async () => {
7069
const path = join(docs("project/prepost/extension"), "i-exist.txt");
71-
assert(fileExists(path));
70+
verifyNoPath(path);
7271
}
7372
}],
7473
{

0 commit comments

Comments
 (0)