]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/archy/test/non_unicode.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / archy / test / non_unicode.js
1 var test = require('tape');
2 var archy = require('../');
3
4 test('beep', function (t) {
5     var s = archy({
6       label : 'beep',
7       nodes : [
8         'ity',
9         {
10           label : 'boop',
11           nodes : [
12             {
13               label : 'o_O',
14               nodes : [
15                 {
16                   label : 'oh',
17                   nodes : [ 'hello', 'puny' ]
18                 },
19                 'human'
20               ]
21             },
22             'party!'
23           ]
24         }
25       ]
26     }, '', { unicode : false });
27     t.equal(s, [
28         'beep',
29         '+-- ity',
30         '`-- boop',
31         '  +-- o_O',
32         '  | +-- oh',
33         '  | | +-- hello',
34         '  | | `-- puny',
35         '  | `-- human',
36         '  `-- party!',
37         ''
38     ].join('\n'));
39     t.end();
40 });