Skip to content

armgit / mocha

Public Imported from GitHub
0

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

error in example

Tj Holowaychukd5bb21330063
diff --git a/test/browser/array.js b/test/browser/array.js
index e7eefebd..8f8ebca1 100644
--- a/test/browser/array.js
+++ b/test/browser/array.js
@@ -17,9 +17,12 @@ describe('Array', function(){
describe('Array', function(){
describe('#pop()', function(){
- it('should remove and return the last value', function(){
+ it('should remove and return the last value', function(done){
var arr = [1,2,3];
assert(arr.pop() == 3);
+ setTimeout(function(){
+ doesNotExist();
+ }, 0);
})
it('should adjust .length', function(){