Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Added bail test case.

Guillermo Rauch5276c14ce57b
diff --git a/test/misc/bail.js b/test/misc/bail.js
new file mode 100644
index 00000000..8f35b0f4
--- /dev/null
+++ b/test/misc/bail.js
@@ -0,0 +1,17 @@
+
+describe('bail', function(){
+ it('should only display this error', function(done){
+ throw new Error('this should be displayed');
+ })
+
+ it('should not display this error', function(done){
+ throw new Error('this should not be displayed');
+ })
+})
+
+describe('bail-2', function(){
+ it('should not display this error', function(done){
+ throw new Error('this should not be displayed');
+ })
+})
+