Skip to content

Commit f85c96f

Browse files
committed
Fix unit test
1 parent 65708a3 commit f85c96f

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

src/components/ControlPlanes/controlPlanes.spec.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
import { describe, it, expect } from 'vitest';
22

3-
import {
4-
ControlPlaneType,
5-
ControlPlaneStatusCondition,
6-
ReadyStatus,
7-
} from '../../lib/api/types/crate/controlPlanes';
3+
import { ControlPlaneType, ControlPlaneStatusCondition, ReadyStatus } from '../../lib/api/types/crate/controlPlanes';
84
import { canConnectToMCP } from './controlPlanes';
95

10-
const createCondition = (
11-
overrides: Partial<ControlPlaneStatusCondition>,
12-
): ControlPlaneStatusCondition => ({
6+
const createCondition = (overrides: Partial<ControlPlaneStatusCondition>): ControlPlaneStatusCondition => ({
137
type: 'Unknown',
148
status: false,
159
reason: 'DefaultReason',
@@ -18,14 +12,15 @@ const createCondition = (
1812
...overrides,
1913
});
2014

21-
const createControlPlane = (
22-
conditions: ControlPlaneStatusCondition[],
23-
): ControlPlaneType => ({
15+
const createControlPlane = (conditions: ControlPlaneStatusCondition[]): ControlPlaneType => ({
2416
metadata: {
2517
name: '',
2618
namespace: '',
2719
},
2820
spec: {
21+
authentication: {
22+
enableSystemIdentityProvider: true,
23+
},
2924
components: {
3025
crossplane: undefined,
3126
btpServiceOperator: undefined,

0 commit comments

Comments
 (0)