UNPKG

jest-preset-angular

Version:

Jest preset configuration for Angular projects

26 lines (21 loc) 623 B
/** * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ 'use strict'; const HTML_ELEMENT_REGEXP = /Comment/; const test = value => value !== undefined && value !== null && value.nodeType === 8 && value.constructor !== undefined && HTML_ELEMENT_REGEXP.test(value.constructor.name); const print = () => ''; module.exports = { print: print, test: test };