summaryrefslogtreecommitdiff
path: root/cli/tests/unit/chown_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/chown_test.ts')
-rw-r--r--cli/tests/unit/chown_test.ts20
1 files changed, 14 insertions, 6 deletions
diff --git a/cli/tests/unit/chown_test.ts b/cli/tests/unit/chown_test.ts
index 60cb45959..82335a7af 100644
--- a/cli/tests/unit/chown_test.ts
+++ b/cli/tests/unit/chown_test.ts
@@ -48,9 +48,13 @@ unitTest(
const { uid, gid } = await getUidAndGid();
const filePath = Deno.makeTempDirSync() + "/chown_test_file.txt";
- assertThrows(() => {
- Deno.chownSync(filePath, uid, gid);
- }, Deno.errors.NotFound);
+ assertThrows(
+ () => {
+ Deno.chownSync(filePath, uid, gid);
+ },
+ Deno.errors.NotFound,
+ `chown '${filePath}'`,
+ );
},
);
@@ -63,9 +67,13 @@ unitTest(
const { uid, gid } = await getUidAndGid();
const filePath = (await Deno.makeTempDir()) + "/chown_test_file.txt";
- await assertRejects(async () => {
- await Deno.chown(filePath, uid, gid);
- }, Deno.errors.NotFound);
+ await assertRejects(
+ async () => {
+ await Deno.chown(filePath, uid, gid);
+ },
+ Deno.errors.NotFound,
+ `chown '${filePath}'`,
+ );
},
);