fix
This commit is contained in:
parent
cfc3d1e9d6
commit
fe6e24cdb8
@ -23,6 +23,7 @@ test.before (() => {
|
|||||||
);
|
);
|
||||||
res.end (str);
|
res.end (str);
|
||||||
})
|
})
|
||||||
|
// eslint-disable-next-line no-magic-numbers
|
||||||
.listen (3000);
|
.listen (3000);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -36,14 +37,14 @@ test ('send request', async (t) => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
test ('fail salt', (t) => {
|
test ('fail salt', async (t) => {
|
||||||
t.throwsAsync (async () => {
|
await t.throwsAsync (
|
||||||
await client.login ('fail', 'bar', 'http://localhost:3000');
|
client.login ('fail', 'bar', 'http://localhost:3000')
|
||||||
});
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
test ('fail password', (t) => {
|
test ('fail password', async (t) => {
|
||||||
t.throwsAsync (async () => {
|
await t.throwsAsync (
|
||||||
await client.login ('foo', 'fail', 'http://localhost:3000');
|
client.login ('foo', 'fail', 'http://localhost:3000')
|
||||||
});
|
);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user