Fix tests

Signed-off-by: Erik Engervall <erik.engervall@gmail.com>
This commit is contained in:
Erik Engervall
2022-01-13 14:06:21 +01:00
parent c1813739c6
commit de065ce91c
2 changed files with 5 additions and 0 deletions
@@ -24,6 +24,7 @@ import {
mockReleaseCandidateCalver,
mockReleaseVersionCalver,
mockTagParts,
mockCtaMessage,
} from '../../test-helpers/test-helpers';
import { mockApiClient } from '../../test-helpers/mock-api-client';
import { PatchBody } from './PatchBody';
@@ -60,6 +61,7 @@ describe('PatchBody', () => {
latestRelease={mockReleaseCandidateCalver}
releaseBranch={mockReleaseBranch}
tagParts={mockTagParts}
ctaMessage={mockCtaMessage}
/>,
);
@@ -77,6 +79,7 @@ describe('PatchBody', () => {
releaseBranch={mockReleaseBranch}
bumpedTag={mockBumpedTag}
tagParts={mockTagParts}
ctaMessage={mockCtaMessage}
/>,
);
@@ -115,6 +115,8 @@ export const mockTagParts = {
patch: 1,
} as CalverTagParts;
export const mockCtaMessage = 'Patch Release Candidate';
export const mockBumpedTag = 'rc-2020.01.01_1337';
/**