|
4 | 4 | */
|
5 | 5 |
|
6 | 6 | require('should');
|
7 |
| -var hyperlinker = require('hyperlinker'); |
8 | 7 |
|
9 | 8 | var Table = require('../');
|
10 | 9 |
|
@@ -44,37 +43,6 @@ module.exports = {
|
44 | 43 | table.toString().should.eql(expected.join("\n"));
|
45 | 44 | },
|
46 | 45 |
|
47 |
| - 'test table with ANSI hyperlink escape codes': function (){ |
48 |
| - var table = new Table({ |
49 |
| - head: ['Rel', 'Change', 'By', 'Link', 'When'] |
50 |
| - , colWidths: [6, 21, 25, 17, 17] |
51 |
| - , style : {compact : true, 'padding-left' : 1, head: [], border: []} |
52 |
| - }); |
53 |
| - |
54 |
| - table.push( |
55 |
| - ['v0.1', 'Testing something cool', '[email protected]', hyperlinker('link', 'https://adobe.com'), '7 minutes ago'] |
56 |
| - , ['v0.1', 'Testing something cool', '[email protected]', hyperlinker('link', 'https://adobe.com'), '8 minutes ago'] |
57 |
| - ); |
58 |
| - |
59 |
| - var expected = [ |
60 |
| - '┌──────┬─────────────────────┬─────────────────────────┬─────────────────┬─────────────────┐' |
61 |
| - , '│ Rel │ Change │ By │ Link │ When │' |
62 |
| - , '├──────┼─────────────────────┼─────────────────────────┼─────────────────┼─────────────────┤' |
63 |
| - , '│ v0.1 │ Testing something … │ [email protected] │ \x1B]8;;https://adobe.com\x07link\x1B]8;;\x07 │ 7 minutes ago │' |
64 |
| - , '│ v0.1 │ Testing something … │ [email protected] │ \x1B]8;;https://adobe.com\x07link\x1B]8;;\x07 │ 8 minutes ago │' |
65 |
| - , '└──────┴─────────────────────┴─────────────────────────┴─────────────────┴─────────────────┘' |
66 |
| - // '┌──────┬─────────────────────┬─────────────────────────┬─────────────────┐' |
67 |
| - // , '│ Rel │ Change │ By │ When │' |
68 |
| - // , '├──────┼─────────────────────┼─────────────────────────┼─────────────────┤' |
69 |
| - // , '│ v0.1 │ Testing something … │ [email protected] │ 7 minutes ago │' |
70 |
| - // , '├──────┼─────────────────────┼─────────────────────────┼─────────────────┤' |
71 |
| - // , '│ v0.1 │ Testing something … │ [email protected] │ 8 minutes ago │' |
72 |
| - // , '└──────┴─────────────────────┴─────────────────────────┴─────────────────┘' |
73 |
| - ]; |
74 |
| - |
75 |
| - table.toString().should.eql(expected.join("\n")); |
76 |
| - }, |
77 |
| - |
78 | 46 | 'test width property': function (){
|
79 | 47 | var table = new Table({
|
80 | 48 | head: ['Cool'],
|
|
0 commit comments