add tests
This commit is contained in:
@ -27,21 +27,17 @@ test ('login', async (t) => {
|
||||
});
|
||||
|
||||
test ('reject invalid user', async (t) => {
|
||||
const session = await client.login (
|
||||
await t.throwsAsync (client.login (
|
||||
'foo',
|
||||
'foo',
|
||||
'http://localhost:3000'
|
||||
);
|
||||
|
||||
t.is (typeof session, 'string');
|
||||
));
|
||||
});
|
||||
|
||||
test ('reject invalid password', async (t) => {
|
||||
const session = await client.login (
|
||||
await t.throwsAsync (client.login (
|
||||
'testuser',
|
||||
'bar',
|
||||
'http://localhost:3000'
|
||||
);
|
||||
|
||||
t.is (typeof session, 'string');
|
||||
));
|
||||
});
|
||||
|
Reference in New Issue
Block a user