浏览代码

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