Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max-top-level-suites not being triggered for mocha/recommended plugin #248

Closed
shawnshuang opened this issue May 22, 2020 · 0 comments · Fixed by #255
Closed

max-top-level-suites not being triggered for mocha/recommended plugin #248

shawnshuang opened this issue May 22, 2020 · 0 comments · Fixed by #255
Labels

Comments

@shawnshuang
Copy link

It's mentioned in the rules markdown that max-top-level-suites is included in the mocha/recommended plugin.

However, I'm not able to trigger the rule with the following simple test:

import * as assert from 'assert';

describe('Array.length', function () {
  it('should return the correct length of the array', function () {
    assert.equal([1, 2, 3].length, 3);
  });
});

describe('Array.indexOf()', function () {
  it('should return -1 when the value is not present', function () {
    assert.equal([1, 2, 3].indexOf(4), -1);
  });
});

What seems weird to me is that I am able to trigger the other rules (e.g. no-global-tests, no-identical-title).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants