Skip to content

Commit

Permalink
test: Don't user Array.p.at() as it's not available in Node.js 14
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Jan 2, 2025
1 parent 4768fb6 commit 848aa12
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/doc/anchors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,12 @@ describe('merge <<', () => {
for (let i = 5; i < res.length - 1; ++i) {
expect(res[i]).toHaveProperty('<<')
}
expect(res.at(-1)).toMatchObject({ x: 1, y: 2, r: 10, label: 'center/big' })
expect(res[res.length - 1]).toMatchObject({
x: 1,
y: 2,
r: 10,
label: 'center/big'
})
})

test('YAML.parseDocument', () => {
Expand Down

0 comments on commit 848aa12

Please sign in to comment.