15 lines
379 B
TypeScript
15 lines
379 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { isStaff } from "./is-staff";
|
|
|
|
describe("isStaff", () => {
|
|
it("is true at or above the min staff rank", () => {
|
|
expect(isStaff(7, 7)).toBe(true);
|
|
expect(isStaff(10, 7)).toBe(true);
|
|
});
|
|
|
|
it("is false below the min staff rank", () => {
|
|
expect(isStaff(6, 7)).toBe(false);
|
|
expect(isStaff(1, 7)).toBe(false);
|
|
});
|
|
});
|