diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-09 11:06:13 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-09 11:17:36 +0200 |
commit | 14d3270f363245d2c83fcc2ac109e39743b5627e (patch) | |
tree | 22a1d40675d372d53c35a4d7adf1fc1b4ceb1799 /server/tests/api/single-pod.ts | |
parent | aa8b6df4a51c82eb91e6fd71a090b2128098af6b (diff) | |
download | PeerTube-14d3270f363245d2c83fcc2ac109e39743b5627e.tar.gz PeerTube-14d3270f363245d2c83fcc2ac109e39743b5627e.tar.zst PeerTube-14d3270f363245d2c83fcc2ac109e39743b5627e.zip |
Change how we handle resolution
It was an enum before, now we just use video height
Diffstat (limited to 'server/tests/api/single-pod.ts')
-rw-r--r-- | server/tests/api/single-pod.ts | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/server/tests/api/single-pod.ts b/server/tests/api/single-pod.ts index 83c981f9b..82bc51a3e 100644 --- a/server/tests/api/single-pod.ts +++ b/server/tests/api/single-pod.ts | |||
@@ -127,8 +127,8 @@ describe('Test a single pod', function () { | |||
127 | const file = video.files[0] | 127 | const file = video.files[0] |
128 | const magnetUri = file.magnetUri | 128 | const magnetUri = file.magnetUri |
129 | expect(file.magnetUri).to.have.lengthOf.above(2) | 129 | expect(file.magnetUri).to.have.lengthOf.above(2) |
130 | expect(file.resolution).to.equal(0) | 130 | expect(file.resolution).to.equal(720) |
131 | expect(file.resolutionLabel).to.equal('original') | 131 | expect(file.resolutionLabel).to.equal('720p') |
132 | expect(file.size).to.equal(218910) | 132 | expect(file.size).to.equal(218910) |
133 | 133 | ||
134 | const test = await testVideoImage(server.url, 'video_short.webm', video.thumbnailPath) | 134 | const test = await testVideoImage(server.url, 'video_short.webm', video.thumbnailPath) |
@@ -170,8 +170,8 @@ describe('Test a single pod', function () { | |||
170 | 170 | ||
171 | const file = video.files[0] | 171 | const file = video.files[0] |
172 | expect(file.magnetUri).to.have.lengthOf.above(2) | 172 | expect(file.magnetUri).to.have.lengthOf.above(2) |
173 | expect(file.resolution).to.equal(0) | 173 | expect(file.resolution).to.equal(720) |
174 | expect(file.resolutionLabel).to.equal('original') | 174 | expect(file.resolutionLabel).to.equal('720p') |
175 | expect(file.size).to.equal(218910) | 175 | expect(file.size).to.equal(218910) |
176 | 176 | ||
177 | const test = await testVideoImage(server.url, 'video_short.webm', video.thumbnailPath) | 177 | const test = await testVideoImage(server.url, 'video_short.webm', video.thumbnailPath) |
@@ -229,8 +229,8 @@ describe('Test a single pod', function () { | |||
229 | 229 | ||
230 | const file = video.files[0] | 230 | const file = video.files[0] |
231 | expect(file.magnetUri).to.have.lengthOf.above(2) | 231 | expect(file.magnetUri).to.have.lengthOf.above(2) |
232 | expect(file.resolution).to.equal(0) | 232 | expect(file.resolution).to.equal(720) |
233 | expect(file.resolutionLabel).to.equal('original') | 233 | expect(file.resolutionLabel).to.equal('720p') |
234 | expect(file.size).to.equal(218910) | 234 | expect(file.size).to.equal(218910) |
235 | 235 | ||
236 | const test = await testVideoImage(server.url, 'video_short.webm', video.thumbnailPath) | 236 | const test = await testVideoImage(server.url, 'video_short.webm', video.thumbnailPath) |
@@ -291,8 +291,8 @@ describe('Test a single pod', function () { | |||
291 | 291 | ||
292 | const file = video.files[0] | 292 | const file = video.files[0] |
293 | expect(file.magnetUri).to.have.lengthOf.above(2) | 293 | expect(file.magnetUri).to.have.lengthOf.above(2) |
294 | expect(file.resolution).to.equal(0) | 294 | expect(file.resolution).to.equal(720) |
295 | expect(file.resolutionLabel).to.equal('original') | 295 | expect(file.resolutionLabel).to.equal('720p') |
296 | expect(file.size).to.equal(218910) | 296 | expect(file.size).to.equal(218910) |
297 | 297 | ||
298 | const test = await testVideoImage(server.url, 'video_short.webm', video.thumbnailPath) | 298 | const test = await testVideoImage(server.url, 'video_short.webm', video.thumbnailPath) |
@@ -569,8 +569,8 @@ describe('Test a single pod', function () { | |||
569 | const file = video.files[0] | 569 | const file = video.files[0] |
570 | const magnetUri = file.magnetUri | 570 | const magnetUri = file.magnetUri |
571 | expect(file.magnetUri).to.have.lengthOf.above(2) | 571 | expect(file.magnetUri).to.have.lengthOf.above(2) |
572 | expect(file.resolution).to.equal(0) | 572 | expect(file.resolution).to.equal(720) |
573 | expect(file.resolutionLabel).to.equal('original') | 573 | expect(file.resolutionLabel).to.equal('720p') |
574 | expect(file.size).to.equal(292677) | 574 | expect(file.size).to.equal(292677) |
575 | 575 | ||
576 | const test = await testVideoImage(server.url, 'video_short3.webm', video.thumbnailPath) | 576 | const test = await testVideoImage(server.url, 'video_short3.webm', video.thumbnailPath) |
@@ -612,8 +612,8 @@ describe('Test a single pod', function () { | |||
612 | 612 | ||
613 | const file = video.files[0] | 613 | const file = video.files[0] |
614 | expect(file.magnetUri).to.have.lengthOf.above(2) | 614 | expect(file.magnetUri).to.have.lengthOf.above(2) |
615 | expect(file.resolution).to.equal(0) | 615 | expect(file.resolution).to.equal(720) |
616 | expect(file.resolutionLabel).to.equal('original') | 616 | expect(file.resolutionLabel).to.equal('720p') |
617 | expect(file.size).to.equal(292677) | 617 | expect(file.size).to.equal(292677) |
618 | }) | 618 | }) |
619 | 619 | ||
@@ -647,8 +647,8 @@ describe('Test a single pod', function () { | |||
647 | 647 | ||
648 | const file = video.files[0] | 648 | const file = video.files[0] |
649 | expect(file.magnetUri).to.have.lengthOf.above(2) | 649 | expect(file.magnetUri).to.have.lengthOf.above(2) |
650 | expect(file.resolution).to.equal(0) | 650 | expect(file.resolution).to.equal(720) |
651 | expect(file.resolutionLabel).to.equal('original') | 651 | expect(file.resolutionLabel).to.equal('720p') |
652 | expect(file.size).to.equal(292677) | 652 | expect(file.size).to.equal(292677) |
653 | }) | 653 | }) |
654 | 654 | ||