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.3.27 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.26 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.25 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.24 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.23 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.22 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.21 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.20 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.19 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.18 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.17 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.16 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.15 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.14 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.13 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.12 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.11g node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.10 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.9 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.8 node_modules/bower/node_modules/archy/test/beep.js