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
@@ -35,6 +35,10 @@ describe("<CatalogEntityDetails />", () => {
CatalogEntityDetailRegistry.createInstance();
});
afterEach(() => {
CatalogEntityDetailRegistry.resetInstance();
});
it("trigger onRun when click on detail panel icon", () => {
const onRun = jest.fn();