Sha256: 754e0d6f901621d08da2406f80b82a299a4c164055f331d25adf8e04b832d7e2

Contents?: true

Size: 838 Bytes

Versions: 9

Compression:

Stored size: 838 Bytes

Contents

var test = require('tap').test;
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

9 entries across 9 versions & 2 rubygems

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