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.

global-integration.js 710B

12345678910111213141516171819202122232425
  1. /* global log */
  2. "use strict";
  3. describe("loglevel from a global <script> tag", function () {
  4. it("is available globally", function () {
  5. expect(log).not.toBeUndefined();
  6. });
  7. it("allows setting the logging level", function () {
  8. log.setLevel(log.levels.TRACE);
  9. log.setLevel(log.levels.DEBUG);
  10. log.setLevel(log.levels.INFO);
  11. log.setLevel(log.levels.WARN);
  12. log.setLevel(log.levels.ERROR);
  13. });
  14. it("successfully logs", function () {
  15. window.console = { "log": jasmine.createSpy("log") };
  16. log.setLevel(log.levels.INFO);
  17. log.info("test message");
  18. expect(console.log).toHaveBeenCalledWith("test message");
  19. });
  20. });