mirror of
https://github.com/gethomepage/homepage.git
synced 2026-10-17 16:01:43 -07:00
Chore: full react hooks eslint compliance (#7040)
This commit is contained in:
@@ -22,12 +22,7 @@ describe("widgets/wallos/component", () => {
|
||||
const service = { widget: { type: "wallos" } };
|
||||
const { container } = renderWithProviders(<Component service={service} />, { settings: { hideErrors: false } });
|
||||
|
||||
expect(service.widget.fields).toEqual([
|
||||
"activeSubscriptions",
|
||||
"nextRenewingSubscription",
|
||||
"thisMonthlyCost",
|
||||
"nextMonthlyCost",
|
||||
]);
|
||||
expect(service.widget.fields).toBeUndefined();
|
||||
expect(container.querySelectorAll(".service-block")).toHaveLength(4);
|
||||
expect(screen.getByText("wallos.activeSubscriptions")).toBeInTheDocument();
|
||||
expect(screen.getByText("wallos.nextRenewingSubscription")).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user