Parcourir la source

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

sbkwgh il y a 8 ans
Parent
commit
d8ded4cfbc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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