Skip to content

Commit c4972ce

Browse files
authored
fix(warning-modal): correct rule display name in warning modal (#538)
* fix(warning-modal): correct rule display name in warning modal * tests(rules): update snapshots
1 parent 486ab8e commit c4972ce

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/app/Rules/Rules.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export const Rules = () => {
404404
</ToolbarGroup>
405405
<RuleDeleteWarningModal
406406
warningType={DeleteWarningType.DeleteAutomatedRules}
407-
rule={rowDeleteData[0]}
407+
rule={rowDeleteData[1]}
408408
visible={warningModalOpen}
409409
onAccept={handleWarningModalAccept}
410410
onClose={handleWarningModalClose}

src/test/Rules/CreateRule.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jest.spyOn(defaultServices.target, 'target').mockReturnValue(of(mockTarget));
108108
jest.spyOn(defaultServices.targets, 'targets').mockReturnValue(of([mockTarget]));
109109
jest.spyOn(defaultServices.targets, 'queryForTargets').mockReturnValue(of());
110110

111-
describe('<CreateRule/>', () => {
111+
describe('<CreateRule />', () => {
112112
beforeEach(() => {
113113
history.go(-history.length);
114114
});

src/test/Rules/Rules.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jest
125125

126126
.mockReturnValue(of()); // other tests
127127

128-
describe('<Rules/>', () => {
128+
describe('<Rules />', () => {
129129
beforeEach(() => {
130130
history.go(-history.length);
131131
});

src/test/Rules/__snapshots__/CreateRule.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`<CreateRule/> renders correctly 1`] = `
3+
exports[`<CreateRule /> renders correctly 1`] = `
44
<section
55
className="pf-c-page__main-section"
66
>

src/test/Rules/__snapshots__/Rules.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`<Rules/> renders correctly 1`] = `
3+
exports[`<Rules /> renders correctly 1`] = `
44
<section
55
className="pf-c-page__main-section"
66
>

0 commit comments

Comments
 (0)