Skip to content

Commit

Permalink
Clarify BOM presence in failing test
Browse files Browse the repository at this point in the history
Work around until jestjs/jest#10584 is solved
  • Loading branch information
dignite committed Nov 8, 2020
1 parent 0ffddb6 commit 7b624eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/npm-package-encapsulation/csv.test.js
Expand Up @@ -11,10 +11,10 @@ describe(csv.csvFromObjectWithBOM, () => {
pi: "between 3 and 4",
};

const result = csv.csvFromObjectWithBOM(input);
const result = csv.csvFromObjectWithBOM(input).replace(BOM, "BOM");

expect(result).toEqual(
`${BOM}"one";"two";"three";"pi"\r\n1;2;3;"between 3 and 4"`
`BOM"one";"two";"three";"pi"\r\n1;2;3;"between 3 and 4"`
);
});
});
Expand All @@ -41,10 +41,10 @@ describe(csv.csvFromObjectTransposed, () => {
six: "half a dozen",
};

const result = csv.csvFromObjectTransposed(input);
const result = csv.csvFromObjectTransposed(input).replace(BOM, "BOM");

expect(result).toEqual(
`${BOM}"four";true\r\n"five";false\r\n"six";"half a dozen"`
`BOM"four";true\r\n"five";false\r\n"six";"half a dozen"`
);
});
});

0 comments on commit 7b624eb

Please sign in to comment.