From ac8ddedfb5d81a77433d296f26f61506b9d639df Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Mon, 21 Oct 2024 15:49:09 +0000 Subject: [PATCH] test(connection): use new properties from app-config --- packages/backend/src/models/connection.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/models/connection.test.js b/packages/backend/src/models/connection.test.js index e64d5fad..9818a3ec 100644 --- a/packages/backend/src/models/connection.test.js +++ b/packages/backend/src/models/connection.test.js @@ -121,7 +121,7 @@ describe('Connection model', () => { const appConfig = await createAppConfig({ key: 'gitlab', disabled: false, - allowCustomConnection: true, + customConnectionAllowed: true, }); const connection = await createConnection({ @@ -151,7 +151,7 @@ describe('Connection model', () => { await createAppConfig({ key: 'gitlab', disabled: true, - allowCustomConnection: false, + customConnectionAllowed: false, }); const connectionWithAppAuthClient = await connection @@ -373,7 +373,7 @@ describe('Connection model', () => { vi.spyOn(Connection.prototype, 'getAppConfig').mockResolvedValue({ disabled: false, - allowCustomConnection: false, + customConnectionAllowed: false, }); const connection = new Connection(); @@ -410,7 +410,7 @@ describe('Connection model', () => { await createAppConfig({ key: 'gitlab', disabled: false, - allowCustomConnection: true, + customConnectionAllowed: true, shared: true, });