Skip to content

armgit / mocha

Public Imported from GitHub
0

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

global hook test

Tj Holowaychuk86caad87446c
diff --git a/test/unit/globals.js b/test/unit/globals.js
index 49c91a33..a20f4c3a 100644
--- a/test/unit/globals.js
+++ b/test/unit/globals.js
@@ -1,5 +1,10 @@
describe('global leaks', function(){
+ beforeEach(function(){
+ // uncomment to test
+ // foo = 'bar'
+ });
+
it('should cause tests to fail', function(){
// uncomment to test
// foo = 'bar';