]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/videos/video-imports.ts
Add basic video editor support
[github/Chocobozzz/PeerTube.git] / server / tests / api / videos / video-imports.ts
index ba21ab17acd7d4d009ee819512bed85a3587a1d4..28da69e8e6b3f335b1134bec1bb1faede7cd93ac 100644 (file)
@@ -219,6 +219,14 @@ describe('Test video imports', function () {
         expect(videoImports[0].video.name).to.equal('你好 世界 720p.mp4')
       })
 
+      it('Should filter my imports on target URL', async function () {
+        const { total, data: videoImports } = await servers[0].imports.getMyVideoImports({ targetUrl: FIXTURE_URLS.youtube })
+        expect(total).to.equal(1)
+        expect(videoImports).to.have.lengthOf(1)
+
+        expect(videoImports[0].targetUrl).to.equal(FIXTURE_URLS.youtube)
+      })
+
       it('Should have the video listed on the two instances', async function () {
         this.timeout(120_000)
 
@@ -459,6 +467,10 @@ describe('Test video imports', function () {
       const { data } = await server.imports.getMyVideoImports()
       expect(data).to.have.lengthOf(0)
     })
+
+    after(async function () {
+      await cleanupTests([ server ])
+    })
   })
 
   describe('Auto update', function () {