From 69121507eb049ffd6ec85d908475503a37d2c5b2 Mon Sep 17 00:00:00 2001 From: przemyslawpluta Date: Sat, 12 Mar 2016 11:24:59 +0000 Subject: [PATCH] permission change on bin cleanup test --- lib/downloader.js | 4 ++-- test/download.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/downloader.js b/lib/downloader.js index 7d1d2ff..4432434 100644 --- a/lib/downloader.js +++ b/lib/downloader.js @@ -35,8 +35,8 @@ function createBase(binDir) { 'use strict'; isWin = (process.platform === 'win32' || process.env.NODE_PLATFORM === 'windows') ? true : false; dir = (binDir) ? binDir : defaultBin; - mkdirp.sync(dir); - if (binDir) { mkdirp.sync(defaultBin); } + mkdirp.sync(dir, {mode: 755}); + if (binDir) { mkdirp.sync(defaultBin, {mode: 755}); } filePath = path.join(dir, 'youtube-dl' + ((isWin) ? '.exe' : '')); } diff --git a/test/download.js b/test/download.js index f7cdc44..08df780 100644 --- a/test/download.js +++ b/test/download.js @@ -124,7 +124,7 @@ vows.describe('download').addBatch({ 'subtitles were downloaded': function(err, files) { 'use strict'; if (err) { throw err; } - console.dir(files); + assert.equal(files[0], subtitleFile); assert.isTrue(fs.existsSync(path.join(__dirname, subtitleFile))); fs.unlinkSync(path.join(__dirname, subtitleFile));