This commit is contained in:
Timo Hocker 2020-03-07 18:26:19 +01:00
parent cfc3d1e9d6
commit fe6e24cdb8

View File

@ -23,6 +23,7 @@ test.before (() => {
);
res.end (str);
})
// eslint-disable-next-line no-magic-numbers
.listen (3000);
});
@ -36,14 +37,14 @@ test ('send request', async (t) => {
);
});
test ('fail salt', (t) => {
t.throwsAsync (async () => {
await client.login ('fail', 'bar', 'http://localhost:3000');
});
test ('fail salt', async (t) => {
await t.throwsAsync (
client.login ('fail', 'bar', 'http://localhost:3000')
);
});
test ('fail password', (t) => {
t.throwsAsync (async () => {
await client.login ('foo', 'fail', 'http://localhost:3000');
});
test ('fail password', async (t) => {
await t.throwsAsync (
client.login ('foo', 'fail', 'http://localhost:3000')
);
});