chore: Update Vitest async test expectations and remove unused dependencies.

This commit is contained in:
2025-12-16 07:43:18 -05:00
parent 1140ffa8b8
commit e8c7c7801f
7 changed files with 606 additions and 932 deletions

View File

@@ -3,8 +3,8 @@ import { describe, expect, it } from "vitest";
import { PromiseTimedOutError, promiseTimeout } from "./promiseTimeout";
describe("promiseTimeout", () => {
it("promise resolves within timeout, returns value", () => {
expect(
it("promise resolves within timeout, returns value", async () => {
await expect(
promiseTimeout(
wait(1).then(() => 2),
10,
@@ -12,8 +12,8 @@ describe("promiseTimeout", () => {
).resolves.toBe(2);
});
it("promise does not resolve within timeout, throws PromiseTimedOutError", () => {
expect(
it("promise does not resolve within timeout, throws PromiseTimedOutError", async () => {
await expect(
promiseTimeout(
wait(2).then(() => 2),
1,