Sha256: 7a058c68de6c1bdfdfe4b094426efa66593ba718736cc41aaaf13b57e84313a5
Contents?: true
Size: 799 Bytes
Versions: 71
Compression:
Stored size: 799 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!' ] } ] }, '', { unicode : false }); 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