From 7c6368856cdab3290be4463da3cb5353c10c45c7 Mon Sep 17 00:00:00 2001 From: Matthew McEachen Date: Sat, 21 Dec 2024 21:42:50 -0800 Subject: [PATCH] fix test --- src/mount_point.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mount_point.test.ts b/src/mount_point.test.ts index bc453d0..7d69192 100644 --- a/src/mount_point.test.ts +++ b/src/mount_point.test.ts @@ -3,7 +3,6 @@ import { jest } from "@jest/globals"; import { getVolumeMountPoints } from ".."; import { times, uniq } from "./array.js"; -import { TimeoutError } from "./async.js"; import { MountPoint } from "./mount_point.js"; import { isLinux, isWindows } from "./platform.js"; import { sortByLocale } from "./string.js"; @@ -33,7 +32,7 @@ describe("Filesystem Metadata", () => { // < timeouts on windows are handled by the native bindings, and don't know about the magick "timeoutMs = 1" test option. it("should timeout mount points if timeoutMs = 1", async () => { await expect(getVolumeMountPoints({ timeoutMs: 1 })).rejects.toThrow( - TimeoutError, + /TimeoutError/, // < we can't check for instanceOf TimeoutError because it's imported from the tsup bundle ); }); }