14 lines
617 B
TypeScript
14 lines
617 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { deriveRoleTokens } from "../use-cases/dispo-import/shared.js";
|
|
|
|
describe("deriveRoleTokens", () => {
|
|
it("recognizes common roster department and title variants", () => {
|
|
expect(deriveRoleTokens("2D Nuke")).toEqual(["2D"]);
|
|
expect(deriveRoleTokens("Motion Design")).toEqual(["2D"]);
|
|
expect(deriveRoleTokens("3D Modeling")).toEqual(["3D"]);
|
|
expect(deriveRoleTokens("Digital Producer")).toEqual(["PM"]);
|
|
expect(deriveRoleTokens("Head of Delivery")).toEqual(["PM"]);
|
|
expect(deriveRoleTokens("Digital Designer")).toEqual(["AD"]);
|
|
});
|
|
});
|