mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
25bd462861
commit
8331d4ff13
@ -19,7 +19,7 @@
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import { getExtensionPageUrl, GlobalPageRegistry, PageParams } from "../page-registry";
|
||||
import { ClusterPageRegistry, getExtensionPageUrl, GlobalPageRegistry, PageParams } from "../page-registry";
|
||||
import { LensExtension } from "../../lens-extension";
|
||||
import React from "react";
|
||||
import { Console } from "console";
|
||||
@ -42,6 +42,7 @@ describe("getPageUrl", () => {
|
||||
isBundled: false,
|
||||
isEnabled: true
|
||||
});
|
||||
ClusterPageRegistry.createInstance();
|
||||
GlobalPageRegistry.createInstance().add({
|
||||
id: "page-with-params",
|
||||
components: {
|
||||
@ -55,6 +56,7 @@ describe("getPageUrl", () => {
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
ClusterPageRegistry.resetInstance();
|
||||
GlobalPageRegistry.resetInstance();
|
||||
});
|
||||
|
||||
@ -106,6 +108,7 @@ describe("globalPageRegistry", () => {
|
||||
isBundled: false,
|
||||
isEnabled: true
|
||||
});
|
||||
ClusterPageRegistry.createInstance();
|
||||
GlobalPageRegistry.createInstance().add([
|
||||
{
|
||||
id: "test-page",
|
||||
@ -128,6 +131,7 @@ describe("globalPageRegistry", () => {
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
ClusterPageRegistry.resetInstance();
|
||||
GlobalPageRegistry.resetInstance();
|
||||
});
|
||||
|
||||
|
||||
@ -30,7 +30,6 @@ jest.mock("electron", () => ({
|
||||
}));
|
||||
|
||||
import { BottomBar } from "./bottom-bar";
|
||||
jest.mock("../../../extensions/registries");
|
||||
import { StatusBarRegistry } from "../../../extensions/registries";
|
||||
|
||||
describe("<BottomBar />", () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user