From f8c078e0b5cdbe945a13b46eab5d1b0193683906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20Lund=C3=A9n?= Date: Tue, 20 Sep 2016 20:39:42 +0200 Subject: [PATCH] Remove useless test --- package.json | 9 +++------ test/test-path-version.js | 21 --------------------- 2 files changed, 3 insertions(+), 27 deletions(-) delete mode 100644 test/test-path-version.js diff --git a/package.json b/package.json index d6f4462..0772c27 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,8 @@ "version": "1.0.2", "main": "index.js", "scripts": { - "test": "tape test/*.js", - "posttest": "jshint *.js", - "preversion": "npm test" + "lint": "jshint *.js", + "preversion": "npm run lint" }, "keywords": [ "ffmpeg", @@ -22,9 +21,7 @@ "@ffmpeg-installer/win32-x64": "3.0.1" }, "devDependencies": { - "jshint": "^2.9.3", - "semver": "^5.3.0", - "tape": "^4.6.0" + "jshint": "^2.9.3" }, "directories": { "test": "test" diff --git a/test/test-path-version.js b/test/test-path-version.js deleted file mode 100644 index 9611ab5..0000000 --- a/test/test-path-version.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -const os = require('os'); -const path = require('path'); - -const test = require('tape'); -const semver = require('semver'); - -const ffmpegInstaller = require('../index'); - -const platform = os.platform() + '-' + os.arch(); -const binary = platform === 'win32' ? 'ffmpeg.exe' : 'ffmpeg'; - -test('', (t) => { - //console.log(ffmpegInstaller.path); - //console.log(ffmpegInstaller.version); - - t.equals(path.resolve(__dirname, '../..', platform, binary), ffmpegInstaller.path, 'Valid path'); - t.true(semver.valid(ffmpegInstaller.version), 'Valid version number'); - t.end(); -}); \ No newline at end of file