Skip to content

Commit 059b72c

Browse files
committed
Remove flatMap()
1 parent 6d53332 commit 059b72c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/log.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ each(EVENTS, ({ title }, { eventName, emit }) => {
5454

5555
t.true(log.called)
5656

57-
const snapshot = log.args.flatMap(snapshotArgs)
57+
const snapshot = [].concat(...log.args.map(snapshotArgs))
5858
t.snapshot(snapshot)
5959

6060
stopLogging()

0 commit comments

Comments
 (0)