From 5ec8db5c75947b95b1225df3632eb70d85206403 Mon Sep 17 00:00:00 2001 From: Yemitan Isaiah Olurotimi Date: Mon, 19 Feb 2024 16:04:04 +0100 Subject: [PATCH] refactor: fix failing tests due to update --- .../builder.spec.ts | 6 +++--- .../mc-project/applied-data-fence/builder.spec.ts | 6 +++--- models/project/src/mc-project/builder.spec.ts | 12 ++++++------ .../src/mc-project/mc-project-draft/builder.spec.ts | 1 - .../src/project/project-draft/builder.spec.ts | 1 - 5 files changed, 12 insertions(+), 14 deletions(-) diff --git a/models/project/src/mc-project/all-permissions-for-all-applications/builder.spec.ts b/models/project/src/mc-project/all-permissions-for-all-applications/builder.spec.ts index fdaae5394..c0b3b36e9 100644 --- a/models/project/src/mc-project/all-permissions-for-all-applications/builder.spec.ts +++ b/models/project/src/mc-project/all-permissions-for-all-applications/builder.spec.ts @@ -28,7 +28,7 @@ describe('builder', () => { type: 'Store', group: expect.any(String), name: expect.any(String), - value: expect.any(Boolean), + value: expect.any(String), }), ]), allAppliedPermissions: expect.arrayContaining([ @@ -67,7 +67,7 @@ describe('builder', () => { type: 'Store', group: expect.any(String), name: expect.any(String), - value: expect.any(Boolean), + value: expect.any(String), }), ]), allAppliedPermissions: expect.arrayContaining([ @@ -109,7 +109,7 @@ describe('builder', () => { type: 'Store', group: expect.any(String), name: expect.any(String), - value: expect.any(Boolean), + value: expect.any(String), }), ]), allAppliedPermissions: expect.arrayContaining([ diff --git a/models/project/src/mc-project/applied-data-fence/builder.spec.ts b/models/project/src/mc-project/applied-data-fence/builder.spec.ts index 9b9d2bc06..80e074f8e 100644 --- a/models/project/src/mc-project/applied-data-fence/builder.spec.ts +++ b/models/project/src/mc-project/applied-data-fence/builder.spec.ts @@ -13,7 +13,7 @@ describe('builder', () => { type: 'Store', group: expect.any(String), name: expect.any(String), - value: expect.any(Boolean), + value: expect.any(String), }) ) ); @@ -26,7 +26,7 @@ describe('builder', () => { type: 'Store', group: expect.any(String), name: expect.any(String), - value: expect.any(Boolean), + value: expect.any(String), }) ) ); @@ -40,7 +40,7 @@ describe('builder', () => { type: 'Store', group: expect.any(String), name: expect.any(String), - value: expect.any(Boolean), + value: expect.any(String), }) ) ); diff --git a/models/project/src/mc-project/builder.spec.ts b/models/project/src/mc-project/builder.spec.ts index 0cb60044d..a6b48382d 100644 --- a/models/project/src/mc-project/builder.spec.ts +++ b/models/project/src/mc-project/builder.spec.ts @@ -42,7 +42,7 @@ describe('builder', () => { type: 'Store', group: expect.any(String), name: expect.any(String), - value: expect.any(Boolean), + value: expect.any(String), }), ]), allAppliedPermissions: expect.arrayContaining([ @@ -64,7 +64,7 @@ describe('builder', () => { type: 'Store', group: expect.any(String), name: expect.any(String), - value: expect.any(Boolean), + value: expect.any(String), }), ]), allAppliedPermissions: expect.arrayContaining([ @@ -119,7 +119,7 @@ describe('builder', () => { type: 'Store', group: expect.any(String), name: expect.any(String), - value: expect.any(Boolean), + value: expect.any(String), }), ]), allAppliedPermissions: expect.arrayContaining([ @@ -141,7 +141,7 @@ describe('builder', () => { type: 'Store', group: expect.any(String), name: expect.any(String), - value: expect.any(Boolean), + value: expect.any(String), }), ]), allAppliedPermissions: expect.arrayContaining([ @@ -209,7 +209,7 @@ describe('builder', () => { type: 'Store', group: expect.any(String), name: expect.any(String), - value: expect.any(Boolean), + value: expect.any(String), }), ]), allAppliedPermissions: [ @@ -240,7 +240,7 @@ describe('builder', () => { type: 'Store', group: expect.any(String), name: expect.any(String), - value: expect.any(Boolean), + value: expect.any(String), }), ]), allAppliedPermissions: expect.arrayContaining([ diff --git a/models/project/src/mc-project/mc-project-draft/builder.spec.ts b/models/project/src/mc-project/mc-project-draft/builder.spec.ts index f542f24f7..b1e89f14d 100644 --- a/models/project/src/mc-project/mc-project-draft/builder.spec.ts +++ b/models/project/src/mc-project/mc-project-draft/builder.spec.ts @@ -44,7 +44,6 @@ describe('builder', () => { 'graphql', McProjectDraft.random().key('project-key-1'), expect.objectContaining({ - __typename: 'ProjectDraft', key: 'project-key-1', name: expect.any(String), countries: ['EN'], diff --git a/models/project/src/project/project-draft/builder.spec.ts b/models/project/src/project/project-draft/builder.spec.ts index 53e23f729..ed4e765a3 100644 --- a/models/project/src/project/project-draft/builder.spec.ts +++ b/models/project/src/project/project-draft/builder.spec.ts @@ -40,7 +40,6 @@ describe('builder', () => { 'graphql', ProjectDraft.random().key('project-key-1'), expect.objectContaining({ - __typename: 'ProjectDraft', key: 'project-key-1', name: expect.any(String), countries: ['EN'],