Skip to content

Commit

Permalink
feat: add mock function for get launch plan
Browse files Browse the repository at this point in the history
Signed-off-by: csirius <[email protected]>
  • Loading branch information
govalt committed Nov 22, 2021
1 parent 15da882 commit 5c9bf1d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const clusterTestId = `metadata-${ExecutionMetadataLabels.cluster}`;
const startTimeTestId = `metadata-${ExecutionMetadataLabels.time}`;
const durationTestId = `metadata-${ExecutionMetadataLabels.duration}`;

jest.mock('models/Launch/api', () => ({
getLaunchPlan: jest.fn(() => Promise.resolve({ spec: {} }))
}));

describe('ExecutionMetadata', () => {
let execution: Execution;
beforeEach(() => {
Expand Down

0 comments on commit 5c9bf1d

Please sign in to comment.