]> git.codecow.com Git - libnemo.git/commitdiff
Ignore type-checking for test globals.
authorChris Duncan <chris@zoso.dev>
Tue, 31 Mar 2026 10:42:23 +0000 (03:42 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 31 Mar 2026 10:42:23 +0000 (03:42 -0700)
test/GLOBALS.mjs

index f8a284b853eaf7e805c15c2d54a0acacde0871fe..5d42308ca301d211eb5230547e1e309375a0b4b3 100644 (file)
@@ -1,6 +1,7 @@
 //! SPDX-FileCopyrightText: 2025 Chris Duncan <chris@zoso.dev>
 //! SPDX-License-Identifier: GPL-3.0-or-later
 
+//@ts-nocheck
 export { env } from '../env.mjs'
 
 if (globalThis.sessionStorage == null) {
@@ -270,7 +271,7 @@ export class assert {
                        try {
                                await fn
                                throw new Error(msg ?? 'expected async function to reject')
-                       } catch {}
+                       } catch { }
                } else {
                        throw new Error(msg ?? 'expected async function')
                }
@@ -306,6 +307,6 @@ export class assert {
                try {
                        fn()
                        throw new Error(msg ?? `expected function to throw an exception`)
-               } catch {}
+               } catch { }
        }
 }