☕️ Classic, reliable, trusted test framework for Node.js and the browser
fixing build for NodeJS v0.6.x
Christopher Hillerc6db23e31105
diff --git a/.travis.yml b/.travis.ymlindex 51f9bdde..ed05f88d 100644--- a/.travis.yml+++ b/.travis.yml@@ -1,5 +1,6 @@language: node_jsnode_js:- "0.11"- - "0.8"- "0.10"+ - "0.8"+ - "0.6"diff --git a/test/acceptance/utils.js b/test/acceptance/utils.jsindex 79948fd4..4bb52e3e 100644--- a/test/acceptance/utils.js+++ b/test/acceptance/utils.js@@ -88,7 +88,9 @@ describe('lib/utils', function () {});describe('lookupFiles', function () {- var fs = require('fs');+ var fs = require('fs'),+ path = require('path'),+ existsSync = fs.existsSync || path.existsSync;beforeEach(function () {fs.writeFileSync('/tmp/mocha-utils.js', 'yippy skippy ying yang yow');@@ -100,9 +102,9 @@ describe('lib/utils', function () {.should.containEql('/tmp/mocha-utils-link.js').and.containEql('/tmp/mocha-utils.js').and.have.lengthOf(2);- fs.existsSync('/tmp/mocha-utils-link.js').should.be.true;+ existsSync('/tmp/mocha-utils-link.js').should.be.true;fs.rename('/tmp/mocha-utils.js', '/tmp/bob');- fs.existsSync('/tmp/mocha-utils-link.js').should.be.true;+ existsSync('/tmp/mocha-utils-link.js').should.be.true;utils.lookupFiles('/tmp', ['js'], false).should.eql([]);});