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.
|
* 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 { LensExtension } from "../../lens-extension";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Console } from "console";
|
import { Console } from "console";
|
||||||
@ -42,6 +42,7 @@ describe("getPageUrl", () => {
|
|||||||
isBundled: false,
|
isBundled: false,
|
||||||
isEnabled: true
|
isEnabled: true
|
||||||
});
|
});
|
||||||
|
ClusterPageRegistry.createInstance();
|
||||||
GlobalPageRegistry.createInstance().add({
|
GlobalPageRegistry.createInstance().add({
|
||||||
id: "page-with-params",
|
id: "page-with-params",
|
||||||
components: {
|
components: {
|
||||||
@ -55,6 +56,7 @@ describe("getPageUrl", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
|
ClusterPageRegistry.resetInstance();
|
||||||
GlobalPageRegistry.resetInstance();
|
GlobalPageRegistry.resetInstance();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -106,6 +108,7 @@ describe("globalPageRegistry", () => {
|
|||||||
isBundled: false,
|
isBundled: false,
|
||||||
isEnabled: true
|
isEnabled: true
|
||||||
});
|
});
|
||||||
|
ClusterPageRegistry.createInstance();
|
||||||
GlobalPageRegistry.createInstance().add([
|
GlobalPageRegistry.createInstance().add([
|
||||||
{
|
{
|
||||||
id: "test-page",
|
id: "test-page",
|
||||||
@ -128,6 +131,7 @@ describe("globalPageRegistry", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
|
ClusterPageRegistry.resetInstance();
|
||||||
GlobalPageRegistry.resetInstance();
|
GlobalPageRegistry.resetInstance();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,6 @@ jest.mock("electron", () => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
import { BottomBar } from "./bottom-bar";
|
import { BottomBar } from "./bottom-bar";
|
||||||
jest.mock("../../../extensions/registries");
|
|
||||||
import { StatusBarRegistry } from "../../../extensions/registries";
|
import { StatusBarRegistry } from "../../../extensions/registries";
|
||||||
|
|
||||||
describe("<BottomBar />", () => {
|
describe("<BottomBar />", () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user