]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix tests
authorChocobozzz <florian.bigard@gmail.com>
Thu, 7 Jul 2016 18:36:46 +0000 (20:36 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Thu, 7 Jul 2016 18:36:46 +0000 (20:36 +0200)
I should consider writing unit tests to test the tests

server/tests/api/singlePod.js

index 5fcf5557f8747c52ce1144d4170b5433d385c3ef..465a86b136e7e9d719cee4b0679ce809918a9c37 100644 (file)
@@ -352,7 +352,7 @@ describe('Test a single pod', function () {
 
       const videos = res.body.data
       expect(res.body.total).to.equal(6)
-      expect(videos.length).to.equal(4)
+      expect(videos.length).to.equal(3)
       expect(videos[0].name === videosListBase[2].name)
       expect(videos[1].name === videosListBase[3].name)
       expect(videos[2].name === videosListBase[4].name)