Reset instance

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
Hung-Han (Henry) Chen committed 2021-10-04 08:45:04 +03:00
1 parent c55b2fa1ae
commit a89ef63477
1 file changed
+4
@@ -34,6 +34,10 @@ describe("<CatalogEntityDetails />", () => {
beforeEach(() => { beforeEach(() => {
CatalogEntityDetailRegistry.createInstance(); CatalogEntityDetailRegistry.createInstance();
}); });
afterEach(() => {
CatalogEntityDetailRegistry.resetInstance();
});
it("trigger onRun when click on detail panel icon", () => { it("trigger onRun when click on detail panel icon", () => {
const onRun = jest.fn(); const onRun = jest.fn();