Sha256: 22e83a5950a7b1b3c3abf9ae61eaaef1dc38c3ff9f776ddd2dfca28cd784405b
Contents?: true
Size: 996 Bytes
Versions: 9
Compression:
Stored size: 996 Bytes
Contents
var test = require('tap').test; var archy = require('../'); test('multi-line', function (t) { var s = archy({ label : 'beep\none\ntwo', nodes : [ 'ity', { label : 'boop', nodes : [ { label : 'o_O\nwheee', nodes : [ { label : 'oh', nodes : [ 'hello', 'puny\nmeat' ] }, 'creature' ] }, 'party\ntime!' ] } ] }); t.equal(s, [ 'beep', '│ one', '│ two', '├── ity', '└─┬ boop', ' ├─┬ o_O', ' │ │ wheee', ' │ ├─┬ oh', ' │ │ ├── hello', ' │ │ └── puny', ' │ │ meat', ' │ └── creature', ' └── party', ' time!', '' ].join('\n')); t.end(); });
Version data entries
9 entries across 9 versions & 2 rubygems