summaryrefslogtreecommitdiff
path: root/mocha_test
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2015-07-19 23:24:57 -0700
committerAlexander Early <alexander.early@gmail.com>2015-07-19 23:24:57 -0700
commit5a0aa3eeffdb44234d6a1186d62f754ceba26b01 (patch)
treefe7630c9809a3bbf05fa96aa6a68c9f3f89b9f31 /mocha_test
parent2dae7878ef485d40bd14eef4b5be70a246633659 (diff)
downloadasync-5a0aa3eeffdb44234d6a1186d62f754ceba26b01.tar.gz
added not about mocha migration, fixed linting
Diffstat (limited to 'mocha_test')
-rw-r--r--mocha_test/forever.js4
-rw-r--r--mocha_test/support/is_browser.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/mocha_test/forever.js b/mocha_test/forever.js
index 3f03b57..970c422 100644
--- a/mocha_test/forever.js
+++ b/mocha_test/forever.js
@@ -6,7 +6,7 @@ describe('forever', function(){
context('function is asynchronous', function(){
it('executes the function over and over until it yields an error', function(done){
var counter = 0;
- addOne = function (callback) {
+ function addOne(callback) {
counter++;
if (counter === 50) {
return callback('too big!');
@@ -20,7 +20,7 @@ describe('forever', function(){
expect(counter).to.eql(50);
done();
});
- })
+ });
});
context('function is synchronous', function(){
diff --git a/mocha_test/support/is_browser.js b/mocha_test/support/is_browser.js
index 7c765e2..85e1522 100644
--- a/mocha_test/support/is_browser.js
+++ b/mocha_test/support/is_browser.js
@@ -1,4 +1,4 @@
module.exports = function() {
return (typeof process === "undefined") ||
(process + "" !== "[object process]"); // browserify
-}
+};