Server IP : 162.213.251.212 / Your IP : 3.15.141.23 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/home/allssztx/./www/easybuyer/node_modules/loglevel/test/ |
Upload File : |
/* global log */ "use strict"; describe("loglevel from a global <script> tag", function () { it("is available globally", function () { expect(log).not.toBeUndefined(); }); it("allows setting the logging level", function () { log.setLevel(log.levels.TRACE); log.setLevel(log.levels.DEBUG); log.setLevel(log.levels.INFO); log.setLevel(log.levels.WARN); log.setLevel(log.levels.ERROR); }); it("successfully logs", function () { window.console = { "log": jasmine.createSpy("log") }; log.setLevel(log.levels.INFO); log.info("test message"); expect(console.log).toHaveBeenCalledWith("test message"); }); });