Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.188.73.229
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
type /
test /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
is-to-string-tag-supported.js
310
B
-rw-rw-r--
2022-08-30 11:49
resolve-exception.js
1.28
KB
-rw-rw-r--
2022-08-30 11:49
safe-to-string.js
1.17
KB
-rw-rw-r--
2022-08-30 11:49
to-short-string.js
1.53
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
"use strict"; var assert = require("chai").assert , toShortString = require("../../lib/to-short-string"); describe("lib/to-short-string", function () { it("Should return input string", function () { assert.equal(toShortString("foo"), "foo"); }); it("Should coerce numbers", function () { assert.equal(toShortString(12), "12"); }); it("Should coerce booleans", function () { assert.equal(toShortString(true), "true"); }); it("Should coerce string objects", function () { assert.equal(toShortString(new String("bar")), "bar"); }); it("Should coerce objects", function () { assert.equal( toShortString({ toString: function () { return "Some object"; } }), "Some object" ); }); it("Should coerce null", function () { assert.equal(toShortString(null), "null"); }); it("Should coerce undefined", function () { assert.equal(toShortString(undefined), "undefined"); }); if (typeof Symbol === "function") { it("Should coerce symbols", function () { // eslint-disable-next-line no-undef assert.equal(toShortString(Symbol()), "Symbol()"); }); } it("Should return replacement non coercible values", function () { assert.equal(toShortString({ toString: null }), "<Non-coercible to string value>"); }); it("Should replace new line characters", function () { assert.equal(toShortString("foo\n\r\u2028\u2029bar"), "foo\\n\\r\\u2028\\u2029bar"); }); it("Should truncate long string", function () { var str = Math.random().toString(36); while (str.length < 200) str += str; assert.equal(toShortString(str).length, 100); }); });