MCPcopy Create free account
hub / github.com/Keyang/node-csvtojson / getDelimiter

Function getDelimiter

src/rowSplit.test.ts:6–14  ·  view source on GitHub ↗
(str, opt: { delimiter: string | string[] })

Source from the content-addressed store, hash-verified

4
5describe("Test delimiters", function () {
6 const getDelimiter = (str, opt: { delimiter: string | string[] }): string => {
7 return RowSplit.prototype["getDelimiter"].call({
8 conv: {
9 parseParam: {
10 delimiter: opt.delimiter
11 }
12 }
13 }, str);
14 }
15
16 it("should return the explicitly specified delimiter", function () {
17 var delimiter = ";";

Callers 1

rowSplit.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected