mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-26 03:20:54 +09:00
fix database initialization
This commit is contained in:
parent
55f9112eed
commit
bbb79bc46a
@ -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 New Issue
Block a user