From 14f8d96a574508e6e283b38776fd09ea04dc693c Mon Sep 17 00:00:00 2001 From: Thuan Vo Date: Wed, 5 Oct 2022 01:07:03 -0400 Subject: [PATCH 1/2] fix(warning-modal): correct rule display name in warning modal --- src/app/Rules/Rules.tsx | 2 +- src/test/Rules/CreateRule.test.tsx | 2 +- src/test/Rules/Rules.test.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/Rules/Rules.tsx b/src/app/Rules/Rules.tsx index 11096cf0b..297ff8146 100644 --- a/src/app/Rules/Rules.tsx +++ b/src/app/Rules/Rules.tsx @@ -404,7 +404,7 @@ export const Rules = () => { ', () => { +describe('', () => { beforeEach(() => { history.go(-history.length); }); diff --git a/src/test/Rules/Rules.test.tsx b/src/test/Rules/Rules.test.tsx index 6611d9155..60a17b8dd 100644 --- a/src/test/Rules/Rules.test.tsx +++ b/src/test/Rules/Rules.test.tsx @@ -125,7 +125,7 @@ jest .mockReturnValue(of()); // other tests -describe('', () => { +describe('', () => { beforeEach(() => { history.go(-history.length); }); From b726efb822e191eb004abb34213e45f36895ae78 Mon Sep 17 00:00:00 2001 From: Thuan Vo Date: Wed, 5 Oct 2022 01:22:44 -0400 Subject: [PATCH 2/2] tests(rules): update snapshots --- src/test/Rules/__snapshots__/CreateRule.test.tsx.snap | 2 +- src/test/Rules/__snapshots__/Rules.test.tsx.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/Rules/__snapshots__/CreateRule.test.tsx.snap b/src/test/Rules/__snapshots__/CreateRule.test.tsx.snap index cdfed6038..bf63d508a 100644 --- a/src/test/Rules/__snapshots__/CreateRule.test.tsx.snap +++ b/src/test/Rules/__snapshots__/CreateRule.test.tsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[` renders correctly 1`] = ` +exports[` renders correctly 1`] = `
diff --git a/src/test/Rules/__snapshots__/Rules.test.tsx.snap b/src/test/Rules/__snapshots__/Rules.test.tsx.snap index 4010adcf1..b4925d163 100644 --- a/src/test/Rules/__snapshots__/Rules.test.tsx.snap +++ b/src/test/Rules/__snapshots__/Rules.test.tsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[` renders correctly 1`] = ` +exports[` renders correctly 1`] = `