Skip to content

Commit

Permalink
chore: add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jul 26, 2019
1 parent e8fa3e2 commit 98eb4c3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/rules/__tests__/no-standalone-expect-test.ts
Expand Up @@ -21,6 +21,17 @@ ruleTester.run('no-standalone-expect', rule, {
'{}',
'it.each([1, true])("trues", value => { expect(value).toBe(true); });',
'it.each([1, true])("trues", value => { expect(value).toBe(true); }); it("an it", () => { expect(1).toBe(1) });',
`
it.each\`
num | val
\${1} | \${true}
\`(
'forbids WatchPlugins overriding reserved internal plugins',
({ _num, val }) => {
expect(value).toBe(true);
}
);
`,
'it.only("an only", value => { expect(value).toBe(true); });',
'describe.each([1, true])("trues", value => { it("an it", () => expect(value).toBe(true) ); });',
],
Expand Down

0 comments on commit 98eb4c3

Please sign in to comment.