mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 05:50:43 -07:00
test: dedupe ownPropertyOnly magic-key tests
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -216,15 +216,6 @@ describe('Context', function () {
|
||||
delete (Object.prototype as any).last
|
||||
}
|
||||
})
|
||||
it('should treat bracket access like dot access for magic keys', function () {
|
||||
Object.assign(Object.prototype, { size: 123 })
|
||||
try {
|
||||
ctx.push({ foo: {} })
|
||||
expect(ctx.getSync(['foo', 'size'])).toEqual(0)
|
||||
} finally {
|
||||
delete (Object.prototype as any).size
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
describe('.getAll()', function () {
|
||||
|
||||
Reference in New Issue
Block a user