Skip to content

Commit 5c2433d

Browse files
Kelly Seldenkellyselden
authored andcommitted
use setUpCwdReset
1 parent c74bb2d commit 5c2433d

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

test/unit/get-project-options-test.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
'use strict';
22

3-
const { describe, it } = require('../helpers/mocha');
3+
const { describe, it, setUpCwdReset } = require('../helpers/mocha');
44
const { expect } = require('../helpers/chai');
55
const path = require('path');
66
const _getProjectOptions = require('../../src/get-project-options');
77

88
describe(_getProjectOptions, function() {
9-
let cwd;
109
let packageJson;
1110
let blueprint;
1211

13-
before(function() {
14-
cwd = process.cwd();
15-
});
12+
setUpCwdReset();
1613

1714
beforeEach(function() {
1815
packageJson = {};
@@ -23,10 +20,6 @@ describe(_getProjectOptions, function() {
2320
};
2421
});
2522

26-
afterEach(function() {
27-
process.chdir(cwd);
28-
});
29-
3023
function getProjectOptions() {
3124
return _getProjectOptions(packageJson, blueprint);
3225
}

0 commit comments

Comments
 (0)