You've already forked pigallery2
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:
@ -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);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user