summaryrefslogtreecommitdiff
path: root/tests/unit/permissions_test.ts
diff options
context:
space:
mode:
authorIan Bull <irbull@eclipsesource.com>2024-09-13 02:38:45 -0700
committerGitHub <noreply@github.com>2024-09-13 11:38:45 +0200
commit606b7b17c6b5eccae9950eeb11d30e63e544b49d (patch)
tree50bbd9ab8209a4a0e32d64cf4d19a744f3dd6e71 /tests/unit/permissions_test.ts
parent7477c2d70639962a40c7333e766b4a4b4aa75ddd (diff)
refactor(runtime): align error messages (#25563)
Aligns the error messages in the runtime folder to be in-line with the Deno style guide. https://github.com/denoland/deno/issues/25269
Diffstat (limited to 'tests/unit/permissions_test.ts')
-rw-r--r--tests/unit/permissions_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/permissions_test.ts b/tests/unit/permissions_test.ts
index e18b0c8f2..82524d556 100644
--- a/tests/unit/permissions_test.ts
+++ b/tests/unit/permissions_test.ts
@@ -120,7 +120,7 @@ Deno.test(function permissionQueryForReadReturnsSameStatusSync() {
});
Deno.test(function permissionsIllegalConstructor() {
- assertThrows(() => new Deno.Permissions(), TypeError, "Illegal constructor.");
+ assertThrows(() => new Deno.Permissions(), TypeError, "Illegal constructor");
assertEquals(Deno.Permissions.length, 0);
});
@@ -128,7 +128,7 @@ Deno.test(function permissionStatusIllegalConstructor() {
assertThrows(
() => new Deno.PermissionStatus(),
TypeError,
- "Illegal constructor.",
+ "Illegal constructor",
);
assertEquals(Deno.PermissionStatus.length, 0);
});