admin page
This commit is contained in:
1 parent
5abad7c475
commit
b84349c037
33 files changed
+2504
-110
No files matched your search
+2
-1
@@ -18,6 +18,7 @@ before(async () => {
|
||||
production: true,
|
||||
showDrafts: false,
|
||||
contentDir: dir,
|
||||
dataDir: undefined,
|
||||
cacheDir: path.join(os.tmpdir(), `site-cache-${process.pid}`),
|
||||
siteUrl: 'https://example.org',
|
||||
});
|
||||
@@ -64,7 +65,7 @@ test('the root redirects by Accept-Language', async () => {
|
||||
});
|
||||
|
||||
test('drafts, hidden pages and wrong slugs are 404', async () => {
|
||||
for (const url of ['/de/portfolio/beta', '/de/homelab', '/de/journey', '/en/werdegang', '/de/nope', '/xx']) {
|
||||
for (const url of ['/de/portfolio/beta', '/de/homelab', '/de/journey', '/en/werdegang', '/de/nope', '/xx', '/admin']) {
|
||||
const res = await get(url);
|
||||
assert.equal(res.status, 404, url);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user