Skip to content

Commit

Permalink
test: fix error bslint error due to hasOwnProperty call
Browse files Browse the repository at this point in the history
Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
  • Loading branch information
MashyBasker committed Feb 12, 2024
1 parent 6a5573a commit 6f39c70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/descriptor-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function createDescriptorFromOptions(desc, type) {

describe('Descriptor', () => {
for (const type in parsable) {
if (parsable.hasOwnProperty(type)) {
if (Object.prototype.hasOwnProperty.call(type)) {
for (const data of parsable[type]) {
const {input, descriptor, checksum, isrange, issolvable, hasprivatekeys, requirechecksum, network} = data;

Expand Down Expand Up @@ -111,7 +111,7 @@ describe('Descriptor', () => {
}

for (const type in validAddresses) {
if (validAddresses.hasOwnProperty(type)) {
if (Object.property.hasOwnProperty.call(type)) {
for (const data of validAddresses[type]) {
const {input, network, range, error} = data;

Expand Down

0 comments on commit 6f39c70

Please sign in to comment.