tlojs
Version:
The Last One - The last npm package you'll need to install
22 lines (17 loc) • 428 B
text/typescript
import { Table } from '../../table'
import { JsonExport } from '../json'
describe('Export Table', () => {
describe('Export Json', () => {
it('should export the table as JSON', () => {
const data = [
{ a: 1},
{ a: 1},
{ a: 2},
{ a: 1}
]
const table = new Table({ data })
const results = table.export(JsonExport)
expect(results).toEqual(data)
})
})
})