diff --git a/src/__tests__/01.js b/src/__tests__/01.js index 57461f9d..895654f5 100644 --- a/src/__tests__/01.js +++ b/src/__tests__/01.js @@ -26,7 +26,7 @@ test('clicking the button increments the count with useReducer', () => { alfredTip(() => { const commentLessLines = Counter.toString() .split('\n') - .filter(l => !l.includes('//')) + .filter(l => !l.trim().substr(0, 2).includes('//')) .join('\n') expect(commentLessLines).toMatch('useReducer(') expect(commentLessLines).not.toMatch('useState(')

AltStyle によって変換されたページ (->オリジナル) /