Skip to content
This repository was archived by the owner on Dec 28, 2023. It is now read-only.

Commit edfa534

Browse files
committed
fix: config does not have to be defined
This is a fix for bug introduced in 9bdcae2
1 parent a374673 commit edfa534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adapter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ var createMochaReporterConstructor = function(tc) {
8080

8181
var createMochaStartFn = function(mocha) {
8282
return function(config) {
83-
if(config.grep){
83+
if(config && config.grep){
8484
mocha.grep(config.grep);
8585
}
8686
mocha.run();

0 commit comments

Comments
 (0)