diff options
Diffstat (limited to 'mocha_test/forever.js')
-rw-r--r-- | mocha_test/forever.js | 4 |
1 files changed, 2 insertions, 2 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(){ |