mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-28 23:11:17 -07:00
Chore: full react hooks eslint compliance (#7040)
This commit is contained in:
@@ -22,7 +22,7 @@ describe("widgets/portainer/component", () => {
|
||||
const service = { widget: { type: "portainer", kubernetes: false } };
|
||||
const { container } = renderWithProviders(<Component service={service} />, { settings: { hideErrors: false } });
|
||||
|
||||
expect(service.widget.fields).toEqual(["running", "stopped", "total"]);
|
||||
expect(service.widget.fields).toBeUndefined();
|
||||
expect(container.querySelectorAll(".service-block")).toHaveLength(3);
|
||||
expect(screen.getByText("portainer.running")).toBeInTheDocument();
|
||||
expect(screen.getByText("portainer.stopped")).toBeInTheDocument();
|
||||
@@ -50,7 +50,7 @@ describe("widgets/portainer/component", () => {
|
||||
const service = { widget: { type: "portainer", kubernetes: true } };
|
||||
const { container } = renderWithProviders(<Component service={service} />, { settings: { hideErrors: false } });
|
||||
|
||||
expect(service.widget.fields).toEqual(["applications", "services", "namespaces"]);
|
||||
expect(service.widget.fields).toBeUndefined();
|
||||
expect(container.querySelectorAll(".service-block")).toHaveLength(3);
|
||||
expect(screen.getByText("portainer.applications")).toBeInTheDocument();
|
||||
expect(screen.getByText("portainer.services")).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user