1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-07-15 01:24:25 +02:00

updating node to v16 and angular to v12

This commit is contained in:
Patrik J. Braun
2022-03-30 22:18:02 +02:00
parent 0e4063fe39
commit a2e576ec27
26 changed files with 15829 additions and 18031 deletions

View File

@ -104,14 +104,14 @@ describe('Typeorm integration', () => {
a.role = UserRoles.Admin;
await conn.getRepository(UserEntity).save(a);
const version = await conn.getRepository(VersionEntity).findOne();
const version = (await conn.getRepository(VersionEntity).find())[0];
version.version--;
await conn.getRepository(VersionEntity).save(version);
await SQLConnection.close();
const conn2 = await SQLConnection.getConnection();
const admins = await conn2.getRepository(UserEntity).find({name: 'migrated admin'});
const admins = await conn2.getRepository(UserEntity).findBy({name: 'migrated admin'});
expect(admins.length).to.be.equal(1);
});