Skip to content

Commit

Permalink
tests: refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed May 18, 2024
1 parent 716cb59 commit 2c87fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ async function validate (format, value, specVersion) {
try {
return await new Validation.XmlValidator(specVersion).validate(value)
} catch (err) {
if (err.constructor === Validation.MissingOptionalDependencyError) {
if (err instanceof Validation.MissingOptionalDependencyError) {
// might not be compiled for some Node-versions
// see https://github.com/marudor/libxmljs2/issues/209
return undefined
Expand Down

0 comments on commit 2c87fcc

Please sign in to comment.