Skip to content

armgit / mocha

Public Imported from GitHub
0

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

prep for serial test

Tj Holowaychuk83e8d48d0314
diff --git a/test/unit/basic.js b/test/unit/basic.js
index 80f9817f..f0eda8e0 100644
--- a/test/unit/basic.js
+++ b/test/unit/basic.js
@@ -1,15 +1,15 @@
-describe('Array', function(){
- describe('#indexOf()', function(){
- it('should return -1 when the value is not present', function(){
- [1,2,3].indexOf(5).should.equal(-1);
- [1,2,3].indexOf(0).should.equal(-1);
- })
-
- it('should return the correct index when the value is present', function(){
- [1,2,3].indexOf(1).should.equal(0);
- [1,2,3].indexOf(2).should.equal(1);
- [1,2,3].indexOf(3).should.equal(2);
- })
- })
-})
+describe('serial', function(){
+ describe('before', function(){
+ var calls = [];
+
+ before(function(test){
+ calls.push(test.fullTitle());
+ });
+
+ it('one', function(){
+ console.log(calls);
+ });
+
+ });
+});
\ No newline at end of file