Server IP : 162.213.251.212 / Your IP : 3.144.248.248 [ 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/console-browserify/test/ |
Upload File : |
var console = require("../index") var test = require("tape") if (typeof window !== "undefined" && !window.JSON) { window.JSON = require("jsonify") } test("console has expected methods", function (assert) { assert.ok(console.log) assert.ok(console.info) assert.ok(console.warn) assert.ok(console.dir) assert.ok(console.time, "time") assert.ok(console.timeEnd, "timeEnd") assert.ok(console.trace, "trace") assert.ok(console.assert) assert.end() }) test("invoke console.log", function (assert) { console.log("test-log") assert.end() }) test("invoke console.info", function (assert) { console.info("test-info") assert.end() }) test("invoke console.warn", function (assert) { console.warn("test-warn") assert.end() }) test("invoke console.time", function (assert) { console.time("label") assert.end() }) test("invoke console.trace", function (assert) { console.trace("test-trace") assert.end() }) test("invoke console.assert", function (assert) { console.assert(true) assert.end() }) test("invoke console.dir", function (assert) { console.dir("test-dir") assert.end() }) test("invoke console.timeEnd", function (assert) { console.timeEnd("label") assert.end() })