mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-28 21:08:52 -07:00
[Test] Fix bug
This commit is contained in:
parent
1e7137bb71
commit
857e3cc961
1 changed files with 4 additions and 4 deletions
|
@ -155,9 +155,9 @@ describe('API', () => {
|
|||
res.body.should.be.a('object');
|
||||
res.body.should.have.property('name').eql(myName);
|
||||
res.body.should.have.property('profile').a('object');
|
||||
res.body.should.have.deep.property('profile.location').eql(myLocation);
|
||||
res.body.should.have.deep.property('profile.birthday').eql(myBirthday);
|
||||
res.body.should.have.deep.property('profile.gender').eql('female');
|
||||
res.body.should.have.nested.property('profile.location').eql(myLocation);
|
||||
res.body.should.have.nested.property('profile.birthday').eql(myBirthday);
|
||||
res.body.should.have.nested.property('profile.gender').eql('female');
|
||||
}));
|
||||
|
||||
it('名前を空白にできない', async(async () => {
|
||||
|
@ -178,7 +178,7 @@ describe('API', () => {
|
|||
res.should.have.status(200);
|
||||
res.body.should.be.a('object');
|
||||
res.body.should.have.property('profile').a('object');
|
||||
res.body.should.have.deep.property('profile.birthday').eql(null);
|
||||
res.body.should.have.nested.property('profile.birthday').eql(null);
|
||||
}));
|
||||
|
||||
it('不正な誕生日の形式で怒られる', async(async () => {
|
||||
|
|
Loading…
Reference in a new issue