Dieses Repository beinhaltet HTML- und Javascript Code zur einer NotizenWebApp auf Basis von Web Storage. Zudem sind Mocha/Chai Tests im Browser enthalten. https://meinenotizen.netlify.app/
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.

chai.js 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*!
  2. * chai
  3. * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
  4. * MIT Licensed
  5. */
  6. var used = [];
  7. /*!
  8. * Chai version
  9. */
  10. exports.version = '4.2.0';
  11. /*!
  12. * Assertion Error
  13. */
  14. exports.AssertionError = require('assertion-error');
  15. /*!
  16. * Utils for plugins (not exported)
  17. */
  18. var util = require('./chai/utils');
  19. /**
  20. * # .use(function)
  21. *
  22. * Provides a way to extend the internals of Chai.
  23. *
  24. * @param {Function}
  25. * @returns {this} for chaining
  26. * @api public
  27. */
  28. exports.use = function (fn) {
  29. if (!~used.indexOf(fn)) {
  30. fn(exports, util);
  31. used.push(fn);
  32. }
  33. return exports;
  34. };
  35. /*!
  36. * Utility Functions
  37. */
  38. exports.util = util;
  39. /*!
  40. * Configuration
  41. */
  42. var config = require('./chai/config');
  43. exports.config = config;
  44. /*!
  45. * Primary `Assertion` prototype
  46. */
  47. var assertion = require('./chai/assertion');
  48. exports.use(assertion);
  49. /*!
  50. * Core Assertions
  51. */
  52. var core = require('./chai/core/assertions');
  53. exports.use(core);
  54. /*!
  55. * Expect interface
  56. */
  57. var expect = require('./chai/interface/expect');
  58. exports.use(expect);
  59. /*!
  60. * Should interface
  61. */
  62. var should = require('./chai/interface/should');
  63. exports.use(should);
  64. /*!
  65. * Assert interface
  66. */
  67. var assert = require('./chai/interface/assert');
  68. exports.use(assert);