We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1da69e commit 7864743Copy full SHA for 7864743
tests/uninstall.test.js
@@ -1,5 +1,5 @@
1
require('chai').should();
2
-var exec = require('child_process').exec;
+var execSync = require('child_process').execSync;
3
var gitHooks = require('../lib/git-hooks');
4
var fsHelpers = require('../lib/fs-helpers');
5
@@ -9,14 +9,9 @@ var GIT_HOOKS = GIT_ROOT + 'hooks';
9
var GIT_HOOKS_OLD = GIT_ROOT + 'hooks.old';
10
11
describe('--uninstall', function () {
12
- beforeEach(function (done) {
+ beforeEach(function () {
13
fsHelpers.makeDir(SANDBOX_PATH);
14
- exec('git init', {cwd: SANDBOX_PATH}, function (err) {
15
- if (err) {
16
- throw err;
17
- }
18
- done();
19
- });
+ execSync('git init', {cwd: SANDBOX_PATH});
20
});
21
22
afterEach(function () {
0 commit comments