Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pateketrueke committed Nov 11, 2020
1 parent aeaaf92 commit bfcd258
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/schema/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,8 @@ export function tryTest(nth, max, test, refs, schema) {
throw new Error(`Property '${prop}' is not present`);
}
});
} else {
if (typeof pick(sample, prop) === 'undefined') {
throw new Error(`Property '${prop}' is not present`);
}
} else if (typeof pick(sample, prop) === 'undefined') {
throw new Error(`Property '${prop}' is not present`);
}
});
}
Expand Down

0 comments on commit bfcd258

Please sign in to comment.