mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
test: Enhance owner completion test (#3175)
This commit is contained in:
parent
8cb58bcbdc
commit
a0b5ad357b
|
@ -30,8 +30,6 @@ beforeAll(async () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
jest.mock('../../config');
|
|
||||||
|
|
||||||
config.set('userManagement.isInstanceOwnerSetUp', false);
|
config.set('userManagement.isInstanceOwnerSetUp', false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -111,6 +109,7 @@ test('POST /owner should create owner with lowercased email', async () => {
|
||||||
|
|
||||||
const { id, email } = response.body.data;
|
const { id, email } = response.body.data;
|
||||||
|
|
||||||
|
expect(id).toBe(ownerShell.id);
|
||||||
expect(email).toBe(newOwnerData.email.toLowerCase());
|
expect(email).toBe(newOwnerData.email.toLowerCase());
|
||||||
|
|
||||||
const storedOwner = await Db.collections.User.findOneOrFail(id);
|
const storedOwner = await Db.collections.User.findOneOrFail(id);
|
||||||
|
|
Loading…
Reference in a new issue