mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 06:00:21 +01:00
fix database initialization
This commit is contained in:
parent
55f9112eed
commit
bbb79bc46a
1 changed files with 2 additions and 2 deletions
|
@ -291,7 +291,7 @@ describe('Endpoints', () => {
|
||||||
|
|
||||||
assert.strictEqual(res.status, 200);
|
assert.strictEqual(res.status, 200);
|
||||||
|
|
||||||
const connection = await initTestDb(false);
|
const connection = await initTestDb(true);
|
||||||
const Users = connection.getRepository(User);
|
const Users = connection.getRepository(User);
|
||||||
const newBob = await Users.findOneByOrFail({ id: bob.id });
|
const newBob = await Users.findOneByOrFail({ id: bob.id });
|
||||||
assert.strictEqual(newBob.followersCount, 0);
|
assert.strictEqual(newBob.followersCount, 0);
|
||||||
|
@ -353,7 +353,7 @@ describe('Endpoints', () => {
|
||||||
|
|
||||||
assert.strictEqual(res.status, 200);
|
assert.strictEqual(res.status, 200);
|
||||||
|
|
||||||
const connection = await initTestDb(false);
|
const connection = await initTestDb(true);
|
||||||
const Users = connection.getRepository(User);
|
const Users = connection.getRepository(User);
|
||||||
const newBob = await Users.findOneByOrFail({ id: bob.id });
|
const newBob = await Users.findOneByOrFail({ id: bob.id });
|
||||||
assert.strictEqual(newBob.followersCount, 0);
|
assert.strictEqual(newBob.followersCount, 0);
|
||||||
|
|
Loading…
Reference in a new issue