Skip to content

Commit 569b665

Browse files
use minimatch instead of glob as example interface
1 parent d337888 commit 569b665

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

test/node-unit/cli/run-helpers.spec.cjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@ describe("helpers", function () {
6262
// this test name is referenced in a comment in `lib/mocha.cjs`
6363
// don't change here without also changing there
6464
it('should add the interface to "Mocha.interfaces"', function () {
65-
// let's suppose that `glob` is an interface
66-
const opts = { ui: "glob" };
65+
// let's suppose that `minimatch` is an interface
66+
const opts = { ui: "minimatch" };
6767
validateLegacyPlugin(opts, "ui", Mocha.interfaces);
68-
expect(opts.ui, "to equal", "glob");
69-
expect(Mocha.interfaces, "to satisfy", { glob: require("glob") });
70-
delete Mocha.interfaces.glob;
68+
expect(opts.ui, "to equal", "minimatch");
69+
expect(Mocha.interfaces, "to satisfy", {
70+
minimatch: require("minimatch"),
71+
});
72+
delete Mocha.interfaces.minimatch;
7173
});
7274
});
7375

0 commit comments

Comments
 (0)