mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
test: Enhance owner completion test (#3175)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user