mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
13 lines
270 B
JavaScript
13 lines
270 B
JavaScript
const { addMatchers } = require('add-matchers');
|
|
|
|
require('jasmine-expect');
|
|
|
|
addMatchers({
|
|
toBeError(value) {
|
|
return value instanceof Error;
|
|
},
|
|
toBeErrorOfType(other, value) {
|
|
return value instanceof Error && value.name === other;
|
|
}
|
|
});
|