Skip to content

Commit

Permalink
refactor(test/index): use Object.hasOwn() (#43)
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <frazer.dev@icloud.com>
  • Loading branch information
Fdawgs authored Oct 19, 2024
1 parent 86c12dc commit d209133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ test('should overwrite values when property is initialised but undefined', funct
const src = { value: undefined }

function hasUndefinedProperty (o) {
t.ok(Object.prototype.hasOwnProperty.call(o, 'value'))
t.ok(Object.hasOwn(o, 'value'))
t.equal(typeof o.value, 'undefined')
}

Expand Down

0 comments on commit d209133

Please sign in to comment.