mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add missing await
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
5cf704ae0b
commit
9f0b9adce8
@ -75,7 +75,7 @@ describe("cluster/namespaces - edit namespaces from previously opened tab", () =
|
|||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
const writeJsonFile = builder.dis.rendererDi.inject(writeJsonFileInjectable);
|
const writeJsonFile = builder.dis.rendererDi.inject(writeJsonFileInjectable);
|
||||||
|
|
||||||
writeJsonFile(
|
await writeJsonFile(
|
||||||
"/some-directory-for-lens-local-storage/some-cluster-id.json",
|
"/some-directory-for-lens-local-storage/some-cluster-id.json",
|
||||||
{
|
{
|
||||||
dock: {
|
dock: {
|
||||||
@ -106,23 +106,23 @@ describe("cluster/namespaces - edit namespaces from previously opened tab", () =
|
|||||||
await storagesAreReady();
|
await storagesAreReady();
|
||||||
});
|
});
|
||||||
|
|
||||||
fit("renders", () => {
|
it("renders", () => {
|
||||||
expect(rendered.baseElement).toMatchSnapshot();
|
expect(rendered.baseElement).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
fit("shows dock tab for editing namespace", () => {
|
it("shows dock tab for editing namespace", () => {
|
||||||
expect(
|
expect(
|
||||||
rendered.getByTestId("dock-tab-for-some-first-tab-id"),
|
rendered.getByTestId("dock-tab-for-some-first-tab-id"),
|
||||||
).toBeInTheDocument();
|
).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
fit("shows spinner in the dock tab", () => {
|
it("shows spinner in the dock tab", () => {
|
||||||
expect(
|
expect(
|
||||||
rendered.getByTestId("edit-resource-tab-spinner"),
|
rendered.getByTestId("edit-resource-tab-spinner"),
|
||||||
).toBeInTheDocument();
|
).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
fit("calls for namespace", () => {
|
it("calls for namespace", () => {
|
||||||
expect(callForNamespaceMock).toHaveBeenCalledWith(
|
expect(callForNamespaceMock).toHaveBeenCalledWith(
|
||||||
"/apis/some-api-version/namespaces/some-uid",
|
"/apis/some-api-version/namespaces/some-uid",
|
||||||
);
|
);
|
||||||
@ -152,11 +152,11 @@ describe("cluster/namespaces - edit namespaces from previously opened tab", () =
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
fit("renders", () => {
|
it("renders", () => {
|
||||||
expect(rendered.baseElement).toMatchSnapshot();
|
expect(rendered.baseElement).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
fit("has the saved configuration in editor", () => {
|
it("has the saved configuration in editor", () => {
|
||||||
const input = rendered.getByTestId(
|
const input = rendered.getByTestId(
|
||||||
"monaco-editor-for-some-first-tab-id",
|
"monaco-editor-for-some-first-tab-id",
|
||||||
) as HTMLTextAreaElement;
|
) as HTMLTextAreaElement;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user