Fixing tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-01-10 15:17:18 +03:00
1 parent 27ca597f3a
commit 18f3f18699
1 file changed
+2 -2
@@ -145,13 +145,13 @@ describe("<ExtensionSettingsPage/>", () => {
const location = createLocation("/preferences/extension-settings/invalid-url"); const location = createLocation("/preferences/extension-settings/invalid-url");
const { getByText } = render(<ExtensionSettingsPage history={history} location={location} match={routeMatch}/>); 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", () => { it("renders error message if no extension id passed in URL", () => {
const location = createLocation("/preferences/extension-settings"); const location = createLocation("/preferences/extension-settings");
const { getByText } = render(<ExtensionSettingsPage history={history} location={location} match={routeMatch}/>); 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();
}); });
}); });