mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +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);
|
||||
|
||||
const connection = await initTestDb(false);
|
||||
const connection = await initTestDb(true);
|
||||
const Users = connection.getRepository(User);
|
||||
const newBob = await Users.findOneByOrFail({ id: bob.id });
|
||||
assert.strictEqual(newBob.followersCount, 0);
|
||||
@ -353,7 +353,7 @@ describe('Endpoints', () => {
|
||||
|
||||
assert.strictEqual(res.status, 200);
|
||||
|
||||
const connection = await initTestDb(false);
|
||||
const connection = await initTestDb(true);
|
||||
const Users = connection.getRepository(User);
|
||||
const newBob = await Users.findOneByOrFail({ id: bob.id });
|
||||
assert.strictEqual(newBob.followersCount, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user