summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-06-07 03:03:56 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-06-07 03:03:56 +0900
commitad497d0e7e0ed67d63aa574693a88caed4f17f7f (patch)
tree55dc5e1c41cf655157e45a885f6addf84bb34ced /test
parentFix indent (diff)
downloadmisskey-ad497d0e7e0ed67d63aa574693a88caed4f17f7f.tar.gz
misskey-ad497d0e7e0ed67d63aa574693a88caed4f17f7f.tar.bz2
misskey-ad497d0e7e0ed67d63aa574693a88caed4f17f7f.zip
[Test] Fix bug
Diffstat (limited to 'test')
-rw-r--r--test/api.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/api.js b/test/api.js
index 3b0a81500f..9e1d4ff61b 100644
--- a/test/api.js
+++ b/test/api.js
@@ -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 () => {