mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-12-01 06:17:38 -07:00
[Test] Add a test
This commit is contained in:
parent
20c4840932
commit
55be5abece
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) => {
|
it('誕生日の設定を削除できる', () => async (done) => {
|
||||||
const me = await insertSakurako({
|
const me = await insertSakurako({
|
||||||
birthday: '2000-09-07'
|
birthday: '2000-09-07'
|
||||||
|
|
Loading…
Reference in a new issue