more seeds
This commit is contained in:
@@ -33,9 +33,13 @@ describe('InMemoryGameRepository', () => {
|
||||
});
|
||||
|
||||
describe('findAll', () => {
|
||||
it('should return an empty array', async () => {
|
||||
it('should return default seeded games', async () => {
|
||||
const result = await repository.findAll();
|
||||
expect(result).toEqual([]);
|
||||
|
||||
const ids = result.map((g) => g.id.toString());
|
||||
expect(ids).toEqual(expect.arrayContaining(['iracing', 'acc', 'f1-24', 'f1-23']));
|
||||
expect(result).toHaveLength(4);
|
||||
|
||||
expect(mockLogger.debug).toHaveBeenCalledWith('[InMemoryGameRepository] Finding all games.');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user