mirror of
https://codeberg.org/yeentown/barkey
synced 2024-12-22 15:20:00 +00:00
[Test] Add a test
This commit is contained in:
parent
52af0ccf0a
commit
4b9067914e
1 changed files with 10 additions and 0 deletions
10
test/api.ts
10
test/api.ts
|
@ -169,6 +169,16 @@ describe('API', () => {
|
|||
});
|
||||
});
|
||||
|
||||
it('名前を空白にできない', () => async (done) => {
|
||||
const me = await insertSakurako();
|
||||
request('/i/update', {
|
||||
name: ' '
|
||||
}, me).then(res => {
|
||||
res.should.have.status(400);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('誕生日の設定を削除できる', () => async (done) => {
|
||||
const me = await insertSakurako({
|
||||
birthday: '2000-09-07'
|
||||
|
|
Loading…
Reference in a new issue