1
0
mirror of https://github.com/thangisme/notes.git synced 2024-06-29 06:05:35 +00:00
notes/node_modules/table/test/README/usage/basic.js
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

28 lines
652 B
JavaScript

import {
table
} from './../../../src';
import expectTable from './expectTable';
describe('README.md usage/', () => {
it('basic', () => {
const data = [
['0A', '0B', '0C'],
['1A', '1B', '1C'],
['2A', '2B', '2C']
];
const output = table(data);
// eslint-disable-next-line no-restricted-syntax
expectTable(output, `
╔════╤════╤════╗
║ 0A │ 0B │ 0C ║
╟────┼────┼────╢
║ 1A │ 1B │ 1C ║
╟────┼────┼────╢
║ 2A │ 2B │ 2C ║
╚════╧════╧════╝
`);
});
});