Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cc4971a

Browse files
fix test (#139)
1 parent fed63f3 commit cc4971a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/__tests__/01.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ test('clicking the button increments the count with useReducer', () => {
2626
alfredTip(() => {
2727
const commentLessLines = Counter.toString()
2828
.split('\n')
29-
.filter(l => !l.includes('//'))
29+
.filter(l => !l.trim().substr(0,2).includes('//'))
3030
.join('\n')
3131
expect(commentLessLines).toMatch('useReducer(')
3232
expect(commentLessLines).not.toMatch('useState(')

0 commit comments

Comments
(0)

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