We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51c3739 commit b72204fCopy full SHA for b72204f
src/uncaught.test.js
@@ -32,7 +32,7 @@ each(
32
const input = getInput()
33
const { value, changes } = safeJsonValue(input)
34
t.true('prop' in value)
35
- const lastChange = changes[changes.length - 1]
+ const lastChange = changes.at(-1)
36
t.true(Array.isArray(lastChange.path) && lastChange.path.every(isProp))
37
t.is(typeof lastChange.oldValue, 'object')
38
t.is(lastChange.newValue, undefined)
0 commit comments