Skip to content

Commit

Permalink
ci(test): update unit test for rand
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 committed Apr 24, 2024
1 parent d34f38f commit 6d2e5d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/utils/rand.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { expect, test } from "vitest";
import { rand } from "@/main";
import { rand, utils } from "@/main";

test("Random number", () => {
const num = rand(1, 10);
const num = utils.rand(1, 10);
expect(num).toBeGreaterThanOrEqual(1);
expect(num).toBeLessThanOrEqual(10);
});
Expand Down

0 comments on commit 6d2e5d5

Please sign in to comment.