Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit 613eb73

Browse files
committed
test: clean up test"
1 parent 1560fbc commit 613eb73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/config-array.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -746,9 +746,9 @@ describe('ConfigArray', () => {
746746
expect(config2).to.be.undefined;
747747
});
748748

749-
it('should not apply config with only ignores when a filename does not match it', () => {
749+
it('should not apply config with only ignores when a filename should be ignored', () => {
750750
const matchingFilename = path.resolve(basePath, 'foo.js');
751-
const notMatchingFilename = path.resolve(basePath, 'bar.js');
751+
const ignoredFilename = path.resolve(basePath, 'bar.js');
752752
configs = new ConfigArray([
753753
{
754754
files: ['**/*.js'],
@@ -770,7 +770,7 @@ describe('ConfigArray', () => {
770770
expect(config1).to.be.an('object');
771771
expect(config1.defs.severity).to.equal('warn');
772772

773-
const config2 = configs.getConfig(notMatchingFilename);
773+
const config2 = configs.getConfig(ignoredFilename);
774774
expect(config2).to.be.an('object');
775775
expect(config2.defs.severity).to.equal('error');
776776
});

0 commit comments

Comments
 (0)