Skip to content

Commit

Permalink
chore(jest-each): Add additional open comment check
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisblossom committed Jul 22, 2019
1 parent 9fb62bb commit fffad4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/jest-each/src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ describe('template', () => {

describe('removes trailing comments', () => {
let testCount = 0;
const expectedTestCount = 2;
const expectedTestCount = 3;

each`
a | b | expected
${0} | ${0} | ${0} // ignores trailing comment
${1} | ${1} | ${2} /* ignores second comment */
/* ${1} | ${1} | ${3} /* ignores second comment */ */
${2} | ${2} | ${4}
`.test('returns $expected when given $a and $b', ({a, b, expected}) => {
testCount += 1;
expect(a + b).toBe(expected);
Expand Down

0 comments on commit fffad4d

Please sign in to comment.