Explorar o código

Add another post in test case to make sure not all posts are being found, only those with reporst

sbkwgh %!s(int64=7) %!d(string=hai) anos
pai
achega
ce650e414b
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      test/delete_thread.js

+ 7 - 0
test/delete_thread.js

@@ -77,6 +77,13 @@ describe('Thread', () => {
 						content: 'post 2',
 						threadId: 1
 					})
+				await user
+					.post('/api/v1/post')
+					.set('content-type', 'application/json')
+					.send({
+						content: 'post 3',
+						threadId: 1
+					})
 
 				await user
 					.post('/api/v1/report')