Minor adjustments for "components" -> "features" renaming

Signed-off-by: Erik Engervall <erik.engervall@gmail.com>
This commit is contained in:
Erik Engervall
2021-04-23 00:30:47 +02:00
parent c33462b440
commit 4101cecb42
3 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ createDevApp()
<DevWrapper>
<InfoCardPlus>
<Typography variant="h4">Dev notes</Typography>
<Typography>Each components can be omitted</Typography>
<Typography>Each feature can be omitted</Typography>
<Typography>Success callbacks can also be added</Typography>
</InfoCardPlus>
@@ -84,7 +84,7 @@ createDevApp()
repo: 'playground-semver',
versioningStrategy: 'semver',
}}
components={{
features={{
createRc: {
successCb: ({
comparisonUrl,
@@ -37,7 +37,7 @@ describe('Features', () => {
it('should omit features omitted via configuration', async () => {
const { getByTestId } = render(
<Features
components={{
features={{
info: { omit: false },
createRc: { omit: true },
promoteRc: { omit: true },
@@ -37,6 +37,7 @@ describe('Info', () => {
<Info
latestRelease={mockReleaseCandidateCalver}
releaseBranch={mockReleaseBranch}
statsEnabled
/>,
);