This commit is contained in:
@ -20,15 +20,12 @@ test.before (async () => {
|
||||
port = await mock_server.start_server ();
|
||||
});
|
||||
|
||||
test.only ('login', async (t) => {
|
||||
console.log ('logging in');
|
||||
console.log ('port:', port);
|
||||
test ('login', async (t) => {
|
||||
const session = await client.login (
|
||||
'testuser',
|
||||
'foo',
|
||||
`http://localhost:${port}`
|
||||
);
|
||||
console.log ('server respond');
|
||||
t.is (typeof session, 'string');
|
||||
|
||||
const resp = await fetch (
|
||||
@ -38,7 +35,6 @@ test.only ('login', async (t) => {
|
||||
|
||||
t.is (resp.status, consts.http.status_ok);
|
||||
t.is (await resp.text (), 'foo:69');
|
||||
console.log ('done test');
|
||||
});
|
||||
|
||||
test ('allow access to excluded paths', async (t) => {
|
||||
|
Reference in New Issue
Block a user