Sha256: 97fddaed4283cb3a16c780df8d4d57d537cf526b6b5b32ed6f7f4cefb0c93e7d
Contents?: true
Size: 834 Bytes
Versions: 71
Compression:
Stored size: 834 Bytes
Contents
var test = require('tape'); var archy = require('../'); test('beep', function (t) { var s = archy({ label : 'beep', nodes : [ 'ity', { label : 'boop', nodes : [ { label : 'o_O', nodes : [ { label : 'oh', nodes : [ 'hello', 'puny' ] }, 'human' ] }, 'party!' ] } ] }); t.equal(s, [ 'beep', '├── ity', '└─┬ boop', ' ├─┬ o_O', ' │ ├─┬ oh', ' │ │ ├── hello', ' │ │ └── puny', ' │ └── human', ' └── party!', '' ].join('\n')); t.end(); });
Version data entries
71 entries across 70 versions & 4 rubygems