This commit is contained in:
ppetzold 2022-05-14 20:18:00 +02:00
parent 8b36beb9bf
commit 79f0ee2863

View File

@ -36,8 +36,8 @@ describe('paginate', () => {
catToyRepo = connection.getRepository(CatToyEntity) catToyRepo = connection.getRepository(CatToyEntity)
catHomeRepo = connection.getRepository(CatHomeEntity) catHomeRepo = connection.getRepository(CatHomeEntity)
cats = await catRepo.save([ cats = await catRepo.save([
catRepo.create({ name: 'Milo', color: 'brown', age: 6, createdAt: '2022-01-01' }), catRepo.create({ name: 'Milo', color: 'brown', age: 6 }),
catRepo.create({ name: 'Garfield', color: 'ginger', age: 5, createdAt: '2022-01-02' }), catRepo.create({ name: 'Garfield', color: 'ginger', age: 5 }),
catRepo.create({ name: 'Shadow', color: 'black', age: 4 }), catRepo.create({ name: 'Shadow', color: 'black', age: 4 }),
catRepo.create({ name: 'George', color: 'white', age: 3 }), catRepo.create({ name: 'George', color: 'white', age: 3 }),
catRepo.create({ name: 'Leche', color: 'white', age: null }), catRepo.create({ name: 'Leche', color: 'white', age: null }),