refactor(db): group database domain modules
This commit is contained in:
1 parent
e43a89096d
commit
6da0a58769
160 files changed
+2124
-1999
No files matched your search
@@ -151,12 +151,14 @@ describe("ACCEPTANCE_CRITERIA_KEYWORDS", () => {
|
||||
describe("checkCapabilityMatch", () => {
|
||||
function makeMockDb(agent: { name: string; capabilities: string }, skillAssignments: string[] = [], skills: Record<string, { name: string; description: string | null; slug: string }> = {}) {
|
||||
return {
|
||||
entityCrud: {
|
||||
getAgent: (_id: string) => agent,
|
||||
},
|
||||
skills: {
|
||||
listAgentSkillAssignments: (_id: string) => skillAssignments,
|
||||
getCompanySkill: (_companyId: string, skillId: string) => skills[skillId] ?? null,
|
||||
core: {
|
||||
entity: {
|
||||
getAgent: (_id: string) => agent,
|
||||
},
|
||||
skills: {
|
||||
listAgentSkillAssignments: (_id: string) => skillAssignments,
|
||||
getCompanySkill: (_companyId: string, skillId: string) => skills[skillId] ?? null,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user