Skip to content

Commit 7799a89

Browse files
NaridaLaciccarello
authored andcommitted
Use mocha's "before" instead of "it" to setup the App. (#874)
Otherwise, the setup is not run when calling mocha --grep.
1 parent 7247605 commit 7799a89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/converter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('Converter', function() {
6161
const base = Path.join(__dirname, 'converter');
6262
let app: Application;
6363

64-
it('constructs', function() {
64+
before('constructs', function() {
6565
app = new Application({
6666
mode: 'Modules',
6767
logger: 'none',
@@ -104,7 +104,7 @@ describe('Converter with excludeNotExported=true', function() {
104104
const classDir = Path.join(base, 'class');
105105
let app: Application;
106106

107-
it('constructs', function() {
107+
before('constructs', function() {
108108
app = new Application({
109109
mode: 'Modules',
110110
logger: 'none',

0 commit comments

Comments
 (0)