fix test with generator method

This commit is contained in:
2025-01-21 15:14:20 -08:00
parent 05b3538a91
commit f71e589493

View File

@@ -21,8 +21,9 @@ describe("UnoptimizedInMemoryRepository", () => {
describe("getSystems", () => {
test("gets the systems stored in the repository", async () => {
const mockSystems = generateMockSystems();
await repository.addOrUpdateSystem(mockSystems[0]);
await repository.addOrUpdateSystem(mockSystems[1]);
for (const system of mockSystems) {
await repository.addOrUpdateSystem(system);
}
const result = await repository.getSystems();