Skip to content

Commit

Permalink
Fix jest test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga committed Sep 17, 2024
1 parent 5ea166d commit 20055ec
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions x-pack/plugins/spaces/server/spaces_client/spaces_client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,8 @@ const createMockDebugLogger = () => {
return jest.fn();
};

const defaultConfig: Pick<ConfigType, 'experimental'> = {
experimental: {
forceSolutionVisibility: false,
},
};

const createMockConfig = (
mockConfig: ConfigType = {
...defaultConfig,
enabled: true,
maxSpaces: 1000,
allowFeatureVisibility: true,
Expand Down Expand Up @@ -325,7 +318,6 @@ describe('#create', () => {
} as any);

const mockConfig = createMockConfig({
...defaultConfig,
enabled: true,
maxSpaces,
allowFeatureVisibility: true,
Expand Down Expand Up @@ -418,7 +410,6 @@ describe('#create', () => {
} as any);

const mockConfig = createMockConfig({
...defaultConfig,
enabled: true,
maxSpaces,
allowFeatureVisibility: true,
Expand Down Expand Up @@ -456,7 +447,6 @@ describe('#create', () => {
} as any);

const mockConfig = createMockConfig({
...defaultConfig,
enabled: true,
maxSpaces,
allowFeatureVisibility: true,
Expand Down Expand Up @@ -505,7 +495,6 @@ describe('#create', () => {
} as any);

const mockConfig = createMockConfig({
...defaultConfig,
enabled: true,
maxSpaces,
allowFeatureVisibility: true,
Expand Down Expand Up @@ -550,7 +539,6 @@ describe('#create', () => {
} as any);

const mockConfig = createMockConfig({
...defaultConfig,
enabled: true,
maxSpaces,
allowFeatureVisibility: false,
Expand Down Expand Up @@ -589,7 +577,6 @@ describe('#create', () => {
} as any);

const mockConfig = createMockConfig({
...defaultConfig,
enabled: true,
maxSpaces,
allowFeatureVisibility: false,
Expand Down Expand Up @@ -631,7 +618,6 @@ describe('#create', () => {
} as any);

const mockConfig = createMockConfig({
...defaultConfig,
enabled: true,
maxSpaces,
allowFeatureVisibility: false,
Expand Down Expand Up @@ -857,7 +843,6 @@ describe('#update', () => {
test(`updates space without disabledFeatures`, async () => {
const mockDebugLogger = createMockDebugLogger();
const mockConfig = createMockConfig({
...defaultConfig,
enabled: true,
maxSpaces: 1000,
allowFeatureVisibility: false,
Expand Down Expand Up @@ -885,7 +870,6 @@ describe('#update', () => {
test(`throws bad request when updating space with disabledFeatures`, async () => {
const mockDebugLogger = createMockDebugLogger();
const mockConfig = createMockConfig({
...defaultConfig,
enabled: true,
maxSpaces: 1000,
allowFeatureVisibility: false,
Expand Down Expand Up @@ -919,7 +903,6 @@ describe('#update', () => {
test(`throws bad request when updating space with solution`, async () => {
const mockDebugLogger = createMockDebugLogger();
const mockConfig = createMockConfig({
...defaultConfig,
enabled: true,
maxSpaces: 1000,
allowFeatureVisibility: false,
Expand Down

0 comments on commit 20055ec

Please sign in to comment.