mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-30 17:31:54 +00:00
Merge pull request #360 from PR0M3TH3AN/add-dashboard-home-button-16801596229675926990
Add Home button to dashboard linking to landing page
This commit is contained in:
4 files changed
+33
-11
No files matched your search
@@ -43,6 +43,11 @@ test('Dashboard File Access Security', async (t) => {
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
});
|
||||
|
||||
await t.test('allows access to landing page', async () => {
|
||||
const res = await get('/landing/index.html');
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
});
|
||||
|
||||
await t.test('blocks access to package.json', async () => {
|
||||
const res = await get('/package.json');
|
||||
assert.strictEqual(res.statusCode, 403);
|
||||
|
||||
Reference in new issue
Block a user