fix
This commit is contained in:
parent
cfc3d1e9d6
commit
fe6e24cdb8
@ -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')
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user