UNPKG

csvtojson

Version:

A tool concentrating on converting csv data to JSON with customised parser supporting

10 lines (9 loc) 264 B
var func = require("../libs/core/getEol"); var assert = require("assert"); describe("getEol function", function() { it ("should retrieve eol from data", function() { var data = "abcde\nefef"; var eol = func(data, {}); assert(eol === "\n"); }); });