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.7 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.6 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.5 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.4 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.3 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.2 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.1 node_modules/bower/node_modules/archy/test/beep.js
trusty-festivity-extension-2.3.0 node_modules/bower/node_modules/archy/test/beep.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp/node_modules/archy/test/beep.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp/node_modules/archy/test/beep.js
gulp_assets-1.0.0.pre.3 template/node_modules/gulp/node_modules/archy/test/beep.js