Skip to content

Commit

Permalink
fix: forgot to export duration fn
Browse files Browse the repository at this point in the history
Changelog: fix
  • Loading branch information
mrspartak committed Jun 22, 2024
1 parent 09f321b commit 4458198
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import { delay, sleep } from "./delay";
import { timeout } from "./timeout";
import { deferred } from "./deferred";
import { retry } from "./retry";
import { duration } from "./duration";

export { to, delay, sleep, timeout, deferred, retry };
export { to, delay, sleep, timeout, deferred, retry, duration };
8 changes: 8 additions & 0 deletions test/build/duration.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { describe, expect, it } from "vitest";
import { duration } from '../../dist/index.js'

describe("duration", () => {
it("must be a function", () => {
expect(typeof duration).toBe("function");
});
});

0 comments on commit 4458198

Please sign in to comment.