Skip to content

Commit

Permalink
Serialization: csv stub added
Browse files Browse the repository at this point in the history
Refs: #317
PR-URL: #323
Co-Authored-By: Timur Shemsedinov <[email protected]>
  • Loading branch information
yehorbk and tshemsedinov committed Jan 9, 2020
1 parent 9330e0e commit edd2ad1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions common.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const submodules = [
'btree', // B-Tree for indexes in DB
'cache', // Cache (enhanced Map)
'callbacks', // Callback utilities
'csv', // CSV stringify
'data', // Data structures manipulations
'enum', // Enumerated type
'events', // Events and emitter
Expand Down
7 changes: 7 additions & 0 deletions lib/csv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict';

const stringify = (data, callback) => {
callback(data);
};

module.exports = { stringify };
12 changes: 12 additions & 0 deletions test/csv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use strict';

const metatests = require('metatests');
const common = require('..');

metatests.case(
'Common / csv',
{ common },
{
// TODO: Cases List
}
);

0 comments on commit edd2ad1

Please sign in to comment.