Skip to content

Commit

Permalink
chore(lint): update tests for new lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
lsagetlethias committed Sep 14, 2022
1 parent 04d0555 commit b2042af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/modules-services.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ describe("Module and loader", () => {
expect(mockModule).toStrictEqual(
IsomorphicModuleFactory.getInstance(MockModule)
);
expect(flagInit).toBeCalledTimes(1);
expect(flagInit).toHaveBeenCalledTimes(1);

await expect(unloadModules(mockModule)).resolves.not.toThrow();
expect(flagUninit).toBeCalledTimes(1);
expect(flagUninit).toHaveBeenCalledTimes(1);
});
});

Expand All @@ -52,8 +52,8 @@ describe("Service", () => {
expect(containerModule.get("mockService")).toBeDefined();
expect(containerModule.get("mockService")).toBeInstanceOf(MockService);
await expect(loadModules(containerModule)).resolves.not.toThrow();
expect(flagLoad).toBeCalledTimes(1);
expect(flagLoad).toHaveBeenCalledTimes(1);
await expect(containerModule.uninit()).resolves.not.toThrow();
expect(flagUnload).toBeCalledTimes(1);
expect(flagUnload).toHaveBeenCalledTimes(1);
});
});

0 comments on commit b2042af

Please sign in to comment.