You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
691 B
TypeScript
18 lines
691 B
TypeScript
import { withProdApp } from "../../test_utils/with-prod-app";
|
|
import { LONG_TEST_TIMEOUT, webhintURL } from "../../test_utils/webhint";
|
|
import { ShowRouteURL } from "../routes";
|
|
|
|
describe("ShowRoute", () => {
|
|
it("doesn't crash", async function () {
|
|
this.timeout(LONG_TEST_TIMEOUT);
|
|
return withProdApp(async ({ base_url, rest_api }) => {
|
|
await rest_api.get(ShowRouteURL);
|
|
await webhintURL(base_url + ShowRouteURL);
|
|
// alternatively you can use webhintHTML for faster but less precise scans
|
|
// or for scanning responses of requests that use some form of authorization:
|
|
// const response = await rest_api.get(ShowRouteURL);
|
|
// await webhintHTML(response);
|
|
});
|
|
});
|
|
});
|