UNPKG

jest-preset-angular

Version:

Jest preset configuration for Angular projects

15 lines (14 loc) 373 B
'use strict'; var HTML_ELEMENT_REGEXP = /Comment/; var test = function (value) { return value !== undefined && value !== null && value.nodeType === 8 && value.constructor !== undefined && HTML_ELEMENT_REGEXP.test(value.constructor.name); }; var print = function () { return ''; }; module.exports = { print: print, test: test, };