1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fixing tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-01-10 15:17:18 +03:00
parent 27ca597f3a
commit 18f3f18699

View File

@ -145,13 +145,13 @@ describe("<ExtensionSettingsPage/>", () => {
const location = createLocation("/preferences/extension-settings/invalid-url");
const { getByText } = render(<ExtensionSettingsPage history={history} location={location} match={routeMatch}/>);
expect(getByText("No settings found")).toBeInTheDocument();
expect(getByText("No settings found.")).toBeInTheDocument();
});
it("renders error message if no extension id passed in URL", () => {
const location = createLocation("/preferences/extension-settings");
const { getByText } = render(<ExtensionSettingsPage history={history} location={location} match={routeMatch}/>);
expect(getByText("No extension id provided in URL")).toBeInTheDocument();
expect(getByText("No extension id provided in URL.")).toBeInTheDocument();
});
});