rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
16 lines (14 loc) • 375 B
text/typescript
import { promiseDelay } from "./promise-delay.js";
import { Test_setDefaultFlags } from "../../test-util/test_set-default-flags.js";
describe("=> promiseDelay", () =>
{
beforeEach(() =>
{
Test_setDefaultFlags();
});
it("| resolves the provided value", async () =>
{
const v = await promiseDelay(1);
expect(v).toBe(1);
});
});