Skip to content

Commit

Permalink
use setUpCwdReset
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden authored and kellyselden committed Dec 29, 2020
1 parent c74bb2d commit 5c2433d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions test/unit/get-project-options-test.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
'use strict';

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

describe(_getProjectOptions, function() {
let cwd;
let packageJson;
let blueprint;

before(function() {
cwd = process.cwd();
});
setUpCwdReset();

beforeEach(function() {
packageJson = {};
Expand All @@ -23,10 +20,6 @@ describe(_getProjectOptions, function() {
};
});

afterEach(function() {
process.chdir(cwd);
});

function getProjectOptions() {
return _getProjectOptions(packageJson, blueprint);
}
Expand Down

0 comments on commit 5c2433d

Please sign in to comment.