diff --git a/test/index.test.js b/test/index.test.js index 976942c..9e54857 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -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') }