Sfoglia il codice sorgente

Change postCount to postsCount

sbkwgh 8 anni fa
parent
commit
30c33a892d
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      test/thread_post.js

+ 3 - 3
test/thread_post.js

@@ -69,7 +69,7 @@ describe('Thread and post', () => {
 			res.should.have.status(200)
 			res.should.be.json
 			res.body.should.have.property('name', 'thread')
-			res.body.should.have.property('postCount', 0)
+			res.body.should.have.property('postsCount', 0)
 			res.body.should.have.property('slug', 'thread')
 			res.body.should.have.deep.property('User.username', 'username')
 			res.body.should.have.deep.property('Category.name', 'category_name')
@@ -180,7 +180,7 @@ describe('Thread and post', () => {
 			res.body.should.have.property('content', '<p>content</p>\n')
 			res.body.should.have.deep.property('User.username', 'username')
 			res.body.should.have.deep.property('Thread.name', 'thread')
-			res.body.should.have.deep.property('Thread.postCount', 1)
+			res.body.should.have.deep.property('Thread.postsCount', 1)
 
 		})
 		it('should return an error if not logged in', async () => {
@@ -283,7 +283,7 @@ describe('Thread and post', () => {
 			res.body.should.have.property('content', '<p>another post</p>\n')
 			res.body.should.have.deep.property('User.username', 'username1')
 			res.body.should.have.deep.property('Thread.name', 'thread')
-			res.body.should.have.deep.property('Thread.postCount', 2)
+			res.body.should.have.deep.property('Thread.postsCount', 2)
 			res.body.should.have.property('replyingToUsername', 'username')
 			res.body.should.have.property('Replies').that.deep.equals([])
 		})