From fffad4de4d915feab6b9ae57f448c5aaadd8c615 Mon Sep 17 00:00:00 2001 From: Chris Blossom Date: Mon, 22 Jul 2019 13:06:43 -0700 Subject: [PATCH] chore(jest-each): Add additional open comment check --- packages/jest-each/src/__tests__/index.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/jest-each/src/__tests__/index.test.ts b/packages/jest-each/src/__tests__/index.test.ts index 9f0b027c354d..28af926859e1 100644 --- a/packages/jest-each/src/__tests__/index.test.ts +++ b/packages/jest-each/src/__tests__/index.test.ts @@ -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);