Sha256: 9ce574cbf976b126ae7c60d179f8c2094040164d06288b404a11b00c08777390

Contents?: true

Size: 803 Bytes

Versions: 9

Compression:

Stored size: 803 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!'
          ]
        }
      ]
    }, '', { unicode : false });
    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/non_unicode.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/archy/test/non_unicode.js
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/archy/test/non_unicode.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/archy/test/non_unicode.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/archy/test/non_unicode.js
entangled-0.0.11 spec/dummy/public/node_modules/bower/node_modules/archy/test/non_unicode.js
entangled-0.0.10 spec/dummy/public/node_modules/bower/node_modules/archy/test/non_unicode.js
trans-0.5.10 template/node_modules/gulp/node_modules/archy/test/non_unicode.js
trans-0.5.9 template/node_modules/gulp/node_modules/archy/test/non_unicode.js