Skip to content

Commit b72204f

Browse files
committed
Fix linting
1 parent 51c3739 commit b72204f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uncaught.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ each(
3232
const input = getInput()
3333
const { value, changes } = safeJsonValue(input)
3434
t.true('prop' in value)
35-
const lastChange = changes[changes.length - 1]
35+
const lastChange = changes.at(-1)
3636
t.true(Array.isArray(lastChange.path) && lastChange.path.every(isProp))
3737
t.is(typeof lastChange.oldValue, 'object')
3838
t.is(lastChange.newValue, undefined)

0 commit comments

Comments
 (0)