Skip to content

Commit

Permalink
Test no-setup-in-describe on disallowed and computed member expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
straub committed Sep 9, 2019
1 parent 0569acd commit 0d838d5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/rules/no-setup-in-describe.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,28 @@ ruleTester.run('no-setup-in-describe', rule, {
line: 1,
column: 28
} ]
}, {
code: 'describe("", function () { this.a(); });',
errors: [ {
message: 'Unexpected function call in describe block.',
line: 1,
column: 28
}, {
message: memberExpressionError,
line: 1,
column: 28
} ]
}, {
code: 'describe("", function () { this["retries"](); });',
errors: [ {
message: 'Unexpected function call in describe block.',
line: 1,
column: 28
}, {
message: memberExpressionError,
line: 1,
column: 28
} ]
}, {
code: 'foo("", function () { a.b; });',
settings: {
Expand Down

0 comments on commit 0d838d5

Please sign in to comment.