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({
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,
});