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 6231ed2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/rules/__tests__/no-standalone-expect-test.ts
Expand Up @@ -21,6 +21,14 @@ 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 | value
\${1} | \${true}
\`('trues', ({ value }) => {
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 6231ed2

Please sign in to comment.