summaryrefslogtreecommitdiff
path: root/cli/js/resources_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/resources_test.ts')
-rw-r--r--cli/js/resources_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/resources_test.ts b/cli/js/resources_test.ts
index 367b66217..5d1e27af7 100644
--- a/cli/js/resources_test.ts
+++ b/cli/js/resources_test.ts
@@ -39,8 +39,8 @@ testPerm({ read: true }, async function resourcesFile(): Promise<void> {
Object.keys(resourcesAfter).length,
Object.keys(resourcesBefore).length + 1
);
- const newRid = Object.keys(resourcesAfter).find((rid): boolean => {
+ const newRid = +Object.keys(resourcesAfter).find((rid): boolean => {
return !resourcesBefore.hasOwnProperty(rid);
- });
+ })!;
assertEquals(resourcesAfter[newRid], "fsFile");
});