Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use actual un-mocked method in test
  • Loading branch information
webpro committed Dec 12, 2018
1 parent f34a3a2 commit c0a210b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/version.js
Expand Up @@ -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 });
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c0a210b

Please sign in to comment.