This commit is contained in:
@ -30,14 +30,14 @@ test ('login', async (t) => {
|
||||
const resp = await fetch ('http://localhost:3000', { headers: { session } });
|
||||
|
||||
t.is (resp.status, consts.http.status_ok);
|
||||
t.is (await resp.text (), 'foo');
|
||||
t.is (await resp.text (), 'foo:69');
|
||||
});
|
||||
|
||||
test ('allow access to excluded paths', async (t) => {
|
||||
const resp = await fetch ('http://localhost:3000/noauthreg');
|
||||
|
||||
t.is (resp.status, consts.http.status_ok);
|
||||
t.is (await resp.text (), 'foo');
|
||||
t.is (await resp.text (), 'foo:undefined');
|
||||
});
|
||||
|
||||
test ('allow access to excluded paths with correct method', async (t) => {
|
||||
@ -47,7 +47,7 @@ test ('allow access to excluded paths with correct method', async (t) => {
|
||||
);
|
||||
|
||||
t.is (resp.status, consts.http.status_ok);
|
||||
t.is (await resp.text (), 'foo');
|
||||
t.is (await resp.text (), 'foo:undefined');
|
||||
});
|
||||
|
||||
test ('reject access to excluded paths with wrong method', async (t) => {
|
||||
|
Reference in New Issue
Block a user