mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
fix test with generator method
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user