From 8e2945ddbf4994d13b5d7e15940d7e231ecc4d91 Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Sun, 30 Dec 2018 11:57:03 +0100 Subject: [PATCH] test: Cut a test --- test/src/find-npm.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/test/src/find-npm.js b/test/src/find-npm.js index f28f97f..450749c 100644 --- a/test/src/find-npm.js +++ b/test/src/find-npm.js @@ -67,26 +67,6 @@ describe('Find-Npm', () => { .catch(err => console.log(err)) }) - it(`should remove newlines from npm's output`, (done) => { - const utilMock = { - isPathAccessible: (path) => path.includes('test-npm') - } - - mockery.registerMock('child_process', cpMock) - mockery.registerMock('./utils', utilMock) - - const findNpm = require('../../src/find-npm') - execReturnValue = 'C:\\test-npm\n' - - findNpm() - .then(result => { - const containsOnlyOneNewline = result.message.includes('C:\\test-npm\n\u001b') - containsOnlyOneNewline.should.be.true; - done() - }) - .catch(err => console.log(err)) - }) - it(`should prefer PowerShell over npm (if both exist)`, (done) => { const fsMock = { accessSync: (path) => true