Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

fix timeout in file-utils.spec.js

Christopher Hiller64c2bfc45177
diff --git a/test/node-unit/file-utils.spec.js b/test/node-unit/file-utils.spec.js
index 5d1c44f7..f425468a 100644
--- a/test/node-unit/file-utils.spec.js
+++ b/test/node-unit/file-utils.spec.js
@@ -13,10 +13,6 @@ describe('file utils', function () {
var tmpFile = path.join.bind(path, tmpDir);
var symlinkSupported = false;
- beforeEach(function () {
- this.timeout(2000);
- });
-
(function testSymlinkSupport () {
makeTempDir();
@@ -32,6 +28,7 @@ describe('file utils', function () {
}());
beforeEach(function () {
+ this.timeout(2000);
makeTempDir();
fs.writeFileSync(tmpFile('mocha-utils.js'), 'yippy skippy ying yang yow');