summaryrefslogtreecommitdiff
path: root/cli/js/resources_test.ts
diff options
context:
space:
mode:
authorMaximilien Mellen <maxmellen0@gmail.com>2020-02-19 21:36:18 +0100
committerGitHub <noreply@github.com>2020-02-19 15:36:18 -0500
commit90125566bbaed8b5c6e55ca8dbc432e3433fb73c (patch)
treebf798a408b26264641260395ce8cfc9d4bb37637 /cli/js/resources_test.ts
parent852823fa505d75d61e70e1330bbf366aa248e650 (diff)
Enable TS strict mode by default (#3899)
Fixes #3324 Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
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");
});