diff options
Diffstat (limited to 'fs/globrex_test.ts')
-rw-r--r-- | fs/globrex_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/globrex_test.ts b/fs/globrex_test.ts index 6d421611f..31607216d 100644 --- a/fs/globrex_test.ts +++ b/fs/globrex_test.ts @@ -19,14 +19,14 @@ function match( opts = strWin; strWin = ""; } - let res = globrex(glob, opts); + const res = globrex(glob, opts); return res.regex.test(isWin && strWin ? strWin : strUnix); } test({ name: "globrex: standard", fn(): void { - let res = globrex("*.js"); + const res = globrex("*.js"); t.equal(typeof globrex, "function", "constructor is a typeof function"); t.equal(res instanceof Object, true, "returns object"); t.equal(res.regex.toString(), "/^.*\\.js$/", "returns regex object"); |