Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/mocha-3.1.0/test/mocha.spec.js')
-rw-r--r--tests/lib/mocha-3.1.0/test/mocha.spec.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/lib/mocha-3.1.0/test/mocha.spec.js b/tests/lib/mocha-3.1.0/test/mocha.spec.js
deleted file mode 100644
index 46411fc18b..0000000000
--- a/tests/lib/mocha-3.1.0/test/mocha.spec.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var Mocha = require('../');
-var Test = Mocha.Test;
-
-describe('Mocha', function(){
- var blankOpts = { reporter: function(){} }; // no output
-
- describe('.run(fn)', function(){
- it('should not raise errors if callback was not provided', function(){
- var mocha = new Mocha(blankOpts);
- mocha.run();
- })
-
- it('should execute the callback when complete', function(done) {
- var mocha = new Mocha(blankOpts);
- mocha.run(function(){
- done();
- })
- })
-
- it('should execute the callback with the number of failures '+
- 'as parameter', function(done) {
- var mocha = new Mocha(blankOpts);
- var failingTest = new Test('failing test', function(){
- throw new Error('such fail');
- });
- mocha.suite.addTest(failingTest);
- mocha.run(function(failures) {
- failures.should.equal(1);
- done();
- });
- })
- })
-})