Fix tests
This commit is contained in:
parent
e1c8024ab9
commit
2c4a0b5d90
|
@ -39,8 +39,9 @@ export class VideosWatchComponent implements OnInit, CanDeactivate {
|
||||||
|
|
||||||
loadVideo(video: Video) {
|
loadVideo(video: Video) {
|
||||||
this.video = video;
|
this.video = video;
|
||||||
|
console.log('Adding ' + this.video.magnetUri + '.');
|
||||||
this.client.add(this.video.magnetUri, (torrent) => {
|
this.client.add(this.video.magnetUri, (torrent) => {
|
||||||
|
console.log('Added ' + this.video.magnetUri + '.');
|
||||||
torrent.files[0].appendTo(this._elementRef.nativeElement, (err) => {
|
torrent.files[0].appendTo(this._elementRef.nativeElement, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
alert('Cannot append the file.');
|
alert('Cannot append the file.');
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
"reflect-metadata": "0.1.2",
|
"reflect-metadata": "0.1.2",
|
||||||
"rxjs": "5.0.0-beta.2",
|
"rxjs": "5.0.0-beta.2",
|
||||||
"systemjs": "0.19.22",
|
"systemjs": "0.19.22",
|
||||||
|
"webtorrent": "^0.85.1",
|
||||||
"zone.js": "0.5.15"
|
"zone.js": "0.5.15"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
"async": "^1.2.1",
|
"async": "^1.2.1",
|
||||||
"bittorrent-tracker": "^7.0.0",
|
"bittorrent-tracker": "^7.0.0",
|
||||||
"body-parser": "^1.12.4",
|
"body-parser": "^1.12.4",
|
||||||
|
"concurrently": "^2.0.0",
|
||||||
"config": "^1.14.0",
|
"config": "^1.14.0",
|
||||||
"connect-livereload": "^0.5.3",
|
"connect-livereload": "^0.5.3",
|
||||||
"debug": "^2.2.0",
|
"debug": "^2.2.0",
|
||||||
|
|
|
@ -176,7 +176,7 @@ function uploadVideo (url, name, description, fixture, end) {
|
||||||
.field('name', name)
|
.field('name', name)
|
||||||
.field('description', description)
|
.field('description', description)
|
||||||
.attach('input_video', pathUtils.join(__dirname, 'fixtures', fixture))
|
.attach('input_video', pathUtils.join(__dirname, 'fixtures', fixture))
|
||||||
.expect(201)
|
.expect(204)
|
||||||
.end(end)
|
.end(end)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue