You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
813 B
19 lines
813 B
import { describe, expect, it } from "vitest";
|
|
import {
|
|
FLOCK_LIMITS,
|
|
isFlockSchedulingAdvancedUnlocked,
|
|
} from "@/lib/constants/flock-limits";
|
|
|
|
describe("isFlockSchedulingAdvancedUnlocked", () => {
|
|
it("件数=5 或 重量=5000 仍未解锁;任一严格大于才解锁", () => {
|
|
expect(isFlockSchedulingAdvancedUnlocked(5, 5000)).toBe(false);
|
|
expect(isFlockSchedulingAdvancedUnlocked(5, 200)).toBe(false);
|
|
expect(isFlockSchedulingAdvancedUnlocked(2, 5000)).toBe(false);
|
|
expect(isFlockSchedulingAdvancedUnlocked(6, 200)).toBe(true);
|
|
expect(isFlockSchedulingAdvancedUnlocked(2, 5001)).toBe(true);
|
|
expect(isFlockSchedulingAdvancedUnlocked(6, 5001)).toBe(true);
|
|
expect(FLOCK_LIMITS.schedulingPiecesMin).toBe(5);
|
|
expect(FLOCK_LIMITS.schedulingWeightMinLb).toBe(5000);
|
|
});
|
|
});
|