From 261d13078da3d90298e66a4436fe92132d0feca2 Mon Sep 17 00:00:00 2001 From: Tyler Sargent Date: Thu, 20 May 2021 21:00:55 -0400 Subject: [PATCH] fix test --- src/__tests__/01.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(')