You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
300 B
JavaScript

"use strict";
const matchValidationError = require("./");
const ValidationError = require("@validatem/error");
let error = new ValidationError("Must be a valid thing");
let notAnError = 42;
console.log(matchValidationError(error)); // true
console.log(matchValidationError(notAnError)); // false