Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
update ugh tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Feb 12, 2014
1 parent 9df37f0 commit db2388c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
14 changes: 7 additions & 7 deletions test/download.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var vows = require('vows');
var ytdl = require('..');
var fs = require('fs');
var path = require('path');
var assert = require('assert');
var video = 'http://www.youtube.com/watch?v=90AiXO1pAiA';
var vows = require('vows');
var ytdl = require('..');
var fs = require('fs');
var path = require('path');
var assert = require('assert');
var video = 'http://www.youtube.com/watch?v=90AiXO1pAiA';


vows.describe('download').addBatch({
Expand Down Expand Up @@ -35,7 +35,7 @@ vows.describe('download').addBatch({
assert.isObject(data);
assert.equal(data.id, '90AiXO1pAiA');
assert.isTrue(/lol-90AiXO1pAiA/.test(data.filename));
assert.equal(data.size, '918.57KiB');
assert.equal(data.size, '738.28KiB');
assert.isNumber(data.timeTakenms);
assert.isString(data.timeTaken);
assert.isNumber(data.averageSpeedBytes);
Expand Down
15 changes: 8 additions & 7 deletions test/getFormat.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
var vows = require('vows');
var ytdl = require('..');
var assert = require('assert');
var video = 'http://www.youtube.com/watch?v=WKsjaOqDXgg';
var video = 'http://www.youtube.com/watch?v=0k2Zzkw_-0I';


var expected = [
{ itag: 34, filetype: 'flv', resolution: '360x640' },
{ itag: 18, filetype: 'mp4', resolution: '360x640' },
{ itag: 43, filetype: 'webm', resolution: '360x640' },
{ itag: 5, filetype: 'flv', resolution: '240x400' },
{ itag: 36, filetype: '3gp', resolution: '240x320' },
{ itag: 17, filetype: '3gp', resolution: '144x176' }
{ itag: 171, filetype: 'webm', resolution: 'audio only' },
{ itag: 140, filetype: 'm4a', resolution: 'audio only' },
{ itag: 17, filetype: '3gp', resolution: '176x144' },
{ itag: 36, filetype: '3gp', resolution: '320x240' },
{ itag: 5, filetype: 'flv', resolution: '400x240' },
{ itag: 43, filetype: 'webm', resolution: '640x360' },
{ itag: 18, filetype: 'mp4', resolution: '640x360' }
];

vows.describe('getFormats').addBatch({
Expand Down
2 changes: 1 addition & 1 deletion test/getInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var expected = {
description: 'Ridley High School\'s real American Bad ASS,A true Delco Savage. Filmed in 2003 before Youtube was invented. This is also the original I find it hilarious that there are copycat videos!',
filename: 'lol-90AiXO1pAiA.mp4',
itag: '18',
resolution: '360x640'
resolution: '640x360'
};

vows.describe('getInfo').addBatch({
Expand Down

0 comments on commit db2388c

Please sign in to comment.