Add option to extract server-side routes at directories other than /api.

Also clarifies some texts and documentation.
This commit is contained in:
freedmand
2018-01-05 19:21:25 -08:00
parent 7588911108
commit 9ea4137b87
2 changed files with 21 additions and 12 deletions

View File

@@ -367,7 +367,8 @@ function run(env) {
const allPages = walkSync(dest);
expectedPages.forEach((expectedPage) => {
assert.ok(allPages.includes(expectedPage));
assert.ok(allPages.includes(expectedPage),
`Could not find page matching ${expectedPage}`);
});
expectedClientRegexes.forEach((expectedRegex) => {
// Ensure each client page regular expression matches at least one
@@ -379,7 +380,8 @@ function run(env) {
break;
}
}
assert.ok(matched);
assert.ok(matched,
`Could not find client page matching ${expectedRegex}`);
});
});
});