Skip to content

Commit

Permalink
feat(orchestrator): workflow editor modal (janus-idp#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
batzionb authored and caponetto committed Jan 11, 2024
1 parent 5ee8e69 commit 0f98f9a
Show file tree
Hide file tree
Showing 11 changed files with 3,154 additions and 52 deletions.
22 changes: 22 additions & 0 deletions plugins/orchestrator/src/__fixtures__/fakeFeatureFlagsApi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import {
FeatureFlag,
FeatureFlagsApi,
FeatureFlagsSaveOptions,
} from '@backstage/core-plugin-api';

export const createFakeFeatureFlagsApi = (
activeFeatureFlags?: string[],
): FeatureFlagsApi => ({
registerFlag: (_flag: FeatureFlag) => {
throw new Error('Function not implemented.');
},
getRegisteredFlags: (): FeatureFlag[] => {
throw new Error('Function not implemented.');
},
isActive: (name: string): boolean => {
return !!activeFeatureFlags?.includes(name);
},
save: (_options: FeatureFlagsSaveOptions): void => {
throw new Error('Function not implemented.');
},
});
Loading

0 comments on commit 0f98f9a

Please sign in to comment.