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.6.3 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/archy/test/beep.js
node-compiler-0.9.1 vendor/node/deps/npm/node_modules/archy/test/beep.js
node-compiler-0.9.0 vendor/node-v7.2.1/deps/npm/node_modules/archy/test/beep.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/archy/test/beep.js
node-compiler-0.8.0 vendor/node-v7.2.0/deps/npm/node_modules/archy/test/beep.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/archy/test/beep.js
node-compiler-0.7.0 vendor/node-v7.1.0/deps/npm/node_modules/archy/test/beep.js
node-compiler-0.7.0 vendor/node-v6.9.1/deps/npm/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.5.9 node_modules/bower/node_modules/archy/test/beep.js