Skip to content

Commit 4e7c743

Browse files
author
Thomas Scholtes
committed
Explain why 'mocha.ui()' is needed'
1 parent 1fd64f8 commit 4e7c743

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/cli/watch-run.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ const resetMocha = mocha => {
146146
mocha.unloadFiles();
147147
mocha.suite = mocha.suite.clone();
148148
mocha.suite.ctx = new Context();
149-
// Registers a callback on `mocha.suite` that will expose the globals from the
150-
// DSL (e.g. `describe`). This is necessary because we have assigned a new
151-
// context to the suite.
149+
// Registers a callback on `mocha.suite` that wires new context to the DSL
150+
// (e.g. `describe`) that is exposed as globals when the test files are
151+
// reloaded.
152152
mocha.ui(mocha.options.ui);
153153
};
154154

0 commit comments

Comments
 (0)