test(connection): use new properties from app-config

This commit is contained in:
Ali BARIN
2024-10-21 15:49:09 +00:00
committed by Faruk AYDIN
parent 6fcd126ff8
commit ac8ddedfb5

View File

@@ -121,7 +121,7 @@ describe('Connection model', () => {
const appConfig = await createAppConfig({ const appConfig = await createAppConfig({
key: 'gitlab', key: 'gitlab',
disabled: false, disabled: false,
allowCustomConnection: true, customConnectionAllowed: true,
}); });
const connection = await createConnection({ const connection = await createConnection({
@@ -151,7 +151,7 @@ describe('Connection model', () => {
await createAppConfig({ await createAppConfig({
key: 'gitlab', key: 'gitlab',
disabled: true, disabled: true,
allowCustomConnection: false, customConnectionAllowed: false,
}); });
const connectionWithAppAuthClient = await connection const connectionWithAppAuthClient = await connection
@@ -373,7 +373,7 @@ describe('Connection model', () => {
vi.spyOn(Connection.prototype, 'getAppConfig').mockResolvedValue({ vi.spyOn(Connection.prototype, 'getAppConfig').mockResolvedValue({
disabled: false, disabled: false,
allowCustomConnection: false, customConnectionAllowed: false,
}); });
const connection = new Connection(); const connection = new Connection();
@@ -410,7 +410,7 @@ describe('Connection model', () => {
await createAppConfig({ await createAppConfig({
key: 'gitlab', key: 'gitlab',
disabled: false, disabled: false,
allowCustomConnection: true, customConnectionAllowed: true,
shared: true, shared: true,
}); });