Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

jestExpect.js 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _expect = _interopRequireDefault(require('expect'));
  7. var _jestSnapshot = require('jest-snapshot');
  8. function _interopRequireDefault(obj) {
  9. return obj && obj.__esModule ? obj : {default: obj};
  10. }
  11. /**
  12. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  13. *
  14. * This source code is licensed under the MIT license found in the
  15. * LICENSE file in the root directory of this source tree.
  16. */
  17. var _default = config => {
  18. _expect.default.setState({
  19. expand: config.expand
  20. });
  21. _expect.default.extend({
  22. toMatchInlineSnapshot: _jestSnapshot.toMatchInlineSnapshot,
  23. toMatchSnapshot: _jestSnapshot.toMatchSnapshot,
  24. toThrowErrorMatchingInlineSnapshot:
  25. _jestSnapshot.toThrowErrorMatchingInlineSnapshot,
  26. toThrowErrorMatchingSnapshot: _jestSnapshot.toThrowErrorMatchingSnapshot
  27. });
  28. _expect.default.addSnapshotSerializer = _jestSnapshot.addSerializer;
  29. return _expect.default;
  30. };
  31. exports.default = _default;