From 77412d6c1f078748b98bd840407b26d7df3fa5b7 Mon Sep 17 00:00:00 2001 From: quintezkiller Date: Thu, 9 Mar 2017 08:49:37 -0500 Subject: [PATCH] More test updates --- test/coreSpec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/coreSpec.js b/test/coreSpec.js index e195603..bfa1b39 100644 --- a/test/coreSpec.js +++ b/test/coreSpec.js @@ -152,7 +152,7 @@ describe(`core::arrays2csv`, () => { it(`renders CSV headers whenever it was given `, () => { const headers = [`X`, `Y`]; const firstLineOfCSV = arrays2csv(fixtures, headers).split(`\n`)[0]; - expect(firstLineOfCSV).toEqual(headers.join(`,`)); + expect(firstLineOfCSV).toEqual("X","Y"); }); }); @@ -181,8 +181,8 @@ describe(`core::jsons2csv`, () => { let fixtures =[{X:'12', Y:'bb'}, {Y:'ee', X:'55'}] const headers = ['Y', 'X', 'Z']; const actual = jsons2csv(fixtures, headers); - expect(actual.startsWith(headers.join(`,`))).toBeTruthy(); - expect(actual.endsWith(`ee,55,`)).toBeTruthy(); + expect(actual.startsWith("Y","X","Z")).toBeTruthy(); + expect(actual.endsWith(`"ee","55",""`)).toBeTruthy(); });