Skip to content

Commit cd8b03e

Browse files
paulgvwinniehell
andauthored
Update packages/test-utils/src/wrapper-array.js
Co-Authored-By: Winnie <[email protected]>
1 parent cae1a50 commit cd8b03e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/test-utils/src/wrapper-array.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default class WrapperArray implements BaseWrapper {
2323
}
2424

2525
at(index: number): Wrapper | VueWrapper {
26-
index = index < 0 ? this.length + index : index
26+
const normalizedIndex = index < 0 ? this.length + index : index
2727
if (index > this.length - 1 || index < 0) {
2828
throwError(`no item exists at ${index}`)
2929
}

0 commit comments

Comments
 (0)