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

Version Path
entangled-0.0.16 spec/dummy/public/node_modules/bower/node_modules/archy/test/multi_line.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/archy/test/multi_line.js
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/archy/test/multi_line.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/archy/test/multi_line.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/archy/test/multi_line.js
entangled-0.0.11 spec/dummy/public/node_modules/bower/node_modules/archy/test/multi_line.js
entangled-0.0.10 spec/dummy/public/node_modules/bower/node_modules/archy/test/multi_line.js
trans-0.5.10 template/node_modules/gulp/node_modules/archy/test/multi_line.js
trans-0.5.9 template/node_modules/gulp/node_modules/archy/test/multi_line.js