Skip to content

Commit 8d24e54

Browse files
committed
Re-use existing withTmpDir
1 parent 3c471bd commit 8d24e54

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎pr-checks/changelog/validate.test.mts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import assert from "node:assert/strict";
2+
import * as fs from "node:fs";
3+
import * as path from "node:path";
24
import { describe, it } from "node:test";
35

4-
import { withTmpFile } from "../../src/util";
6+
import { withTmpDir, withTmpFile } from "../../src/util";
57

68
import {
79
hasValidChangenoteCategory,
@@ -164,7 +166,7 @@ await describe("isValidChangenoteFileOrDir", async () => {
164166
});
165167
});
166168

167-
await it("accepts an empty directory", async () => {
169+
await it("accepts an empty directory", () => {
168170
await withTmpDir(async (tmpDir) => {
169171
assert.equal(isValidChangenoteFileOrDir(tmpDir), true);
170172
});

0 commit comments

Comments
 (0)