-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix errors, add dropRequireCacheBeforeRun() option setter
- Loading branch information
Dmitry Sorin
committed
Sep 22, 2016
1 parent
8f706e2
commit 92f0248
Showing
4 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
var Mocha = require('../../../') | ||
, assert = require('assert') | ||
, path = require('path'); | ||
|
||
var testFile = path.resolve(__dirname, 'spec.js'); | ||
var includeFile = path.resolve(__dirname, 'include.js'); | ||
|
||
var set1 = new Mocha(); | ||
set1.addFile(testFile); | ||
|
||
var set2 = new Mocha(); | ||
set2.addFile(testFile); | ||
|
||
set1.run(function () { | ||
assert.strictEqual(global[includeFile], 1, 'JSAPI test #1 didn\'t run'); | ||
|
||
set2.run(function () { | ||
assert.strictEqual(global[includeFile], 1, 'JSAPI test has probably been executed'); | ||
}); | ||
}); |