mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Match the doctor-visit resource read signature in its gate test
This commit is contained in:
1 parent
bb41b1673e
commit
8e94f6cb20
1 file changed
+2
-2
@@ -103,7 +103,7 @@ describe("doctor-visit aggregate — doctorReport module gate", () => {
|
||||
describe.each([
|
||||
{
|
||||
name: "fixed resource",
|
||||
run: () => fixedResource.read(ctx, {}),
|
||||
run: () => fixedResource.read(ctx),
|
||||
},
|
||||
{
|
||||
name: "windowed template",
|
||||
@@ -142,7 +142,7 @@ describe("doctor-visit aggregate — doctorReport module gate", () => {
|
||||
});
|
||||
|
||||
it("gates on doctorReport specifically", async () => {
|
||||
await fixedResource.read(ctx, {});
|
||||
await fixedResource.read(ctx);
|
||||
expect(isModuleEnabled).toHaveBeenCalledWith("u1", "doctorReport");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user