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.

sinon.js 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. "use strict";
  2. var behavior = require("./sinon/behavior");
  3. var createSandbox = require("./sinon/create-sandbox");
  4. var extend = require("./sinon/util/core/extend");
  5. var fakeTimers = require("./sinon/util/fake-timers");
  6. var format = require("./sinon/util/core/format");
  7. var nise = require("nise");
  8. var Sandbox = require("./sinon/sandbox");
  9. var stub = require("./sinon/stub");
  10. var promise = require("./sinon/promise");
  11. var apiMethods = {
  12. createSandbox: createSandbox,
  13. assert: require("./sinon/assert"),
  14. match: require("@sinonjs/samsam").createMatcher,
  15. restoreObject: require("./sinon/restore-object"),
  16. expectation: require("./sinon/mock-expectation"),
  17. defaultConfig: require("./sinon/util/core/default-config"),
  18. setFormatter: format.setFormatter,
  19. // fake timers
  20. timers: fakeTimers.timers,
  21. // fake XHR
  22. xhr: nise.fakeXhr.xhr,
  23. FakeXMLHttpRequest: nise.fakeXhr.FakeXMLHttpRequest,
  24. // fake server
  25. fakeServer: nise.fakeServer,
  26. fakeServerWithClock: nise.fakeServerWithClock,
  27. createFakeServer: nise.fakeServer.create.bind(nise.fakeServer),
  28. createFakeServerWithClock: nise.fakeServerWithClock.create.bind(
  29. nise.fakeServerWithClock
  30. ),
  31. addBehavior: function (name, fn) {
  32. behavior.addBehavior(stub, name, fn);
  33. },
  34. // fake promise
  35. promise: promise,
  36. };
  37. var sandbox = new Sandbox();
  38. var api = extend(sandbox, apiMethods);
  39. module.exports = api;