* Make project list react as the default in the main router * Remove angular controller check-in project list smoke test GitOrigin-RevId: 586a14afd9888d6f18e3cfa64aeebc5975bb43d5
14 lines
348 B
JavaScript
14 lines
348 B
JavaScript
const TITLE_REGEX = /<title>Your Projects - .*, Online LaTeX Editor<\/title>/
|
|
|
|
async function run({ request, assertHasStatusCode }) {
|
|
const response = await request('/project')
|
|
|
|
assertHasStatusCode(response, 200)
|
|
|
|
if (!TITLE_REGEX.test(response.body)) {
|
|
throw new Error('body does not have correct title')
|
|
}
|
|
}
|
|
|
|
module.exports = { run }
|