1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Reset instance

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
Hung-Han (Henry) Chen 2021-10-04 08:45:04 +03:00
parent c55b2fa1ae
commit a89ef63477
No known key found for this signature in database
GPG Key ID: 54B44603D251B788

View File

@ -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();