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

Version Path
trusty-festivity-extension-2.5.8 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.7 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.6 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.5 node_modules/bower/node_modules/archy/test/beep.js
blackboard-3.1.9 lib/site_template/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.4 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.3 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.2 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.1 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.0 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.4.6 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.4.5 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.4.4 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.4.3 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.4.2 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.4.1 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.4.0 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.30 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.29 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.28 node_modules/bower/node_modules/archy/test/beep.js