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

feat: create max-nested-describe rule #845

Merged
merged 14 commits into from
Jul 21, 2021
Prev Previous commit
Next Next commit
test: fix missing brackets
  • Loading branch information
dominictwlee committed May 24, 2021
commit 3fc92335facd2868245faa84d8a7f272c4b4a315
14 changes: 7 additions & 7 deletions src/rules/__tests__/max-nested-describe.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ ruleTester.run('max-nested-describe', rule, {
describe('baz', function () {
describe('qux', function () {
it('should get something', () => {
expect(getSomething().toBe('Something'))
expect(getSomething()).toBe('Something');
});
})
})
Expand All @@ -115,13 +115,13 @@ ruleTester.run('max-nested-describe', rule, {
describe('bar', () => {
describe('baz', () => {
it('should get something', () => {
expect(getSomething().toBe('Something'))
expect(getSomething()).toBe('Something');
});
});

describe('qux', function () {
it('should get something', () => {
expect(getSomething().toBe('Something'))
expect(getSomething()).toBe('Something');
});
});
})
Expand All @@ -138,21 +138,21 @@ ruleTester.run('max-nested-describe', rule, {
describe.only('bar', () => {
describe.skip('baz', () => {
it('should get something', () => {
expect(getSomething().toBe('Something'))
expect(getSomething()).toBe('Something');
});
});

describe('baz', () => {
it('should get something', () => {
expect(getSomething().toBe('Something'))
expect(getSomething()).toBe('Something');
});
});
});
});

xdescribe('qux', () => {
it('should get something', () => {
expect(getSomething().toBe('Something'))
expect(getSomething()).toBe('Something');
});
});
`,
Expand All @@ -165,7 +165,7 @@ ruleTester.run('max-nested-describe', rule, {
code: dedent`
describe('qux', () => {
it('should get something', () => {
expect(getSomething().toBe('Something'))
expect(getSomething()).toBe('Something');
});
});
`,
Expand Down