Переглянути джерело

Expect a specific string on a removed post, rather than ust null

sbkwgh 8 роки тому
батько
коміт
d8ded4cfbc
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      test/thread_post.js

+ 1 - 1
test/thread_post.js

@@ -687,7 +687,7 @@ describe('Thread and post', () => {
 			let post = await userAgent.get('/api/v1/post/' + postId)
 
 			post.body.should.have.property('removed', true)
-			post.body.should.have.property('content', null)
+			post.body.should.have.property('content', '<p>[This post has been removed by an administrator]</p>\n')
 		})
 		it('should return an error if post does not exist', done => {
 			userAgent