Skip to content

Commit

Permalink
fix(apps/web): latest entries test
Browse files Browse the repository at this point in the history
  • Loading branch information
dandheedge authored and brunomenezes committed Mar 25, 2024
1 parent cf99fac commit a1aa6e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/web/test/components/latestEntriesTable.test.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { describe, it } from "vitest";
import { fireEvent, render, screen } from "@testing-library/react";
import prettyMilliseconds from "pretty-ms";
import { describe, it } from "vitest";
import LatestEntriesTable, {
LatestEntriesTableProps,
} from "../../src/components/latestEntriesTable";
import { withMantineTheme } from "../utils/WithMantineTheme";
import prettyMilliseconds from "pretty-ms";

const Component = withMantineTheme(LatestEntriesTable);

Expand Down Expand Up @@ -42,7 +42,7 @@ describe("LatestEntriesTable component", () => {

it("should display correct label when no entries are fetched", () => {
render(<Component entries={[]} fetching={false} totalCount={0} />);
expect(screen.getByText("No inputs")).toBeInTheDocument();
expect(screen.getByText("No entries")).toBeInTheDocument();
});

it("should display correct age", () => {
Expand Down

0 comments on commit a1aa6e5

Please sign in to comment.