mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
fix test with generator method
This commit is contained in:
@@ -21,8 +21,9 @@ describe("UnoptimizedInMemoryRepository", () => {
|
|||||||
describe("getSystems", () => {
|
describe("getSystems", () => {
|
||||||
test("gets the systems stored in the repository", async () => {
|
test("gets the systems stored in the repository", async () => {
|
||||||
const mockSystems = generateMockSystems();
|
const mockSystems = generateMockSystems();
|
||||||
await repository.addOrUpdateSystem(mockSystems[0]);
|
for (const system of mockSystems) {
|
||||||
await repository.addOrUpdateSystem(mockSystems[1]);
|
await repository.addOrUpdateSystem(system);
|
||||||
|
}
|
||||||
|
|
||||||
const result = await repository.getSystems();
|
const result = await repository.getSystems();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user