xref: /third_party/node/deps/npm/node_modules/text-table/test/doubledot.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/deps/npm/node_modules/text-table/test/
11cb0ef41Sopenharmony_civar test = require('tape');
21cb0ef41Sopenharmony_civar table = require('../');
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_citest('dot align', function (t) {
51cb0ef41Sopenharmony_ci    t.plan(1);
61cb0ef41Sopenharmony_ci    var s = table([
71cb0ef41Sopenharmony_ci        [ '0.1.2' ],
81cb0ef41Sopenharmony_ci        [ '11.22.33' ],
91cb0ef41Sopenharmony_ci        [ '5.6.7' ],
101cb0ef41Sopenharmony_ci        [ '1.22222' ],
111cb0ef41Sopenharmony_ci        [ '12345.' ],
121cb0ef41Sopenharmony_ci        [ '5555.' ],
131cb0ef41Sopenharmony_ci        [ '123' ]
141cb0ef41Sopenharmony_ci    ], { align: [ '.' ] });
151cb0ef41Sopenharmony_ci    t.equal(s, [
161cb0ef41Sopenharmony_ci        '  0.1.2',
171cb0ef41Sopenharmony_ci        '11.22.33',
181cb0ef41Sopenharmony_ci        '  5.6.7',
191cb0ef41Sopenharmony_ci        '    1.22222',
201cb0ef41Sopenharmony_ci        '12345.',
211cb0ef41Sopenharmony_ci        ' 5555.',
221cb0ef41Sopenharmony_ci        '  123'
231cb0ef41Sopenharmony_ci    ].join('\n'));
241cb0ef41Sopenharmony_ci});
25

Indexes created Thu Nov 07 10:32:03 CST 2024