diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/js/bun/test/expect.test.js | 6 | ||||
-rw-r--r-- | test/js/node/watch/fs.watch.test.ts | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/js/bun/test/expect.test.js b/test/js/bun/test/expect.test.js index 4b9e5ec22..b6e312022 100644 --- a/test/js/bun/test/expect.test.js +++ b/test/js/bun/test/expect.test.js @@ -2636,9 +2636,9 @@ describe("expect()", () => { expect({ a: [1, 2, 3] }).toMatchObject({ a: expect.arrayContaining([1, 2]) }); expect({ a: [1, 2, 3] }).not.toMatchObject({ a: expect.arrayContaining([4]) }); - expect({ a: ['hello', 'world'] }).toMatchObject({ a: expect.arrayContaining([]) }); - expect({ a: ['hello', 'world'] }).toMatchObject({ a: expect.arrayContaining(['world']) }); - expect({ a: ['hello', 'world'] }).not.toMatchObject({ a: expect.arrayContaining(['hello', 'mars']) }); + expect({ a: ["hello", "world"] }).toMatchObject({ a: expect.arrayContaining([]) }); + expect({ a: ["hello", "world"] }).toMatchObject({ a: expect.arrayContaining(["world"]) }); + expect({ a: ["hello", "world"] }).not.toMatchObject({ a: expect.arrayContaining(["hello", "mars"]) }); expect([]).toMatchObject([]); expect([]).toMatchObject({}); diff --git a/test/js/node/watch/fs.watch.test.ts b/test/js/node/watch/fs.watch.test.ts index 10fc754d2..787ce413c 100644 --- a/test/js/node/watch/fs.watch.test.ts +++ b/test/js/node/watch/fs.watch.test.ts @@ -67,7 +67,7 @@ describe("fs.watch", () => { const root = path.join(testDir, "add-directory"); try { fs.mkdirSync(root); - } catch { } + } catch {} let err: Error | undefined = undefined; const watcher = fs.watch(root, { signal: AbortSignal.timeout(3000) }); watcher.on("change", (event, filename) => { @@ -102,7 +102,7 @@ describe("fs.watch", () => { const root = path.join(testDir, "add-subdirectory"); try { fs.mkdirSync(root); - } catch { } + } catch {} const subfolder = path.join(root, "subfolder"); fs.mkdirSync(subfolder); const watcher = fs.watch(root, { recursive: true, signal: AbortSignal.timeout(3000) }); @@ -438,7 +438,7 @@ describe("fs.promises.watch", () => { const root = path.join(testDir, "add-promise-directory"); try { fs.mkdirSync(root); - } catch { } + } catch {} let success = false; let err: Error | undefined = undefined; try { @@ -480,7 +480,7 @@ describe("fs.promises.watch", () => { const root = path.join(testDir, "add-promise-subdirectory"); try { fs.mkdirSync(root); - } catch { } + } catch {} const subfolder = path.join(root, "subfolder"); fs.mkdirSync(subfolder); let success = false; |