From c0a210b4f8defbff13bc3488798a69c17c8484cf Mon Sep 17 00:00:00 2001 From: Lars Kappert Date: Wed, 12 Dec 2018 18:20:16 +0100 Subject: [PATCH] Use actual un-mocked method in test --- test/version.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/version.js b/test/version.js index 8343fc49..6ec919b5 100644 --- a/test/version.js +++ b/test/version.js @@ -3,7 +3,7 @@ const proxyquire = require('proxyquire'); const shell = require('shelljs'); const mockStdIo = require('mock-stdio'); const { run } = require('../lib/shell'); -const { isValid, isPreRelease } = require('../lib/version'); +const { parse, isValid, isPreRelease } = require('../lib/version'); const getLatestTag = version => ({ getLatestTag: () => version }); const getRecommendedType = (type = null) => ({ getRecommendedType: () => type }); @@ -151,8 +151,6 @@ test('parse (patch release after pre-release)', async t => { }); test('parse (recommended conventional bump)', async t => { - const { parse } = getMock(getLatestTag('1.0.0')); - const tmp = 'test/resources/tmp'; shell.mkdir(tmp); shell.pushd('-q', tmp);