Skip to content

Commit

Permalink
Fix windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsup committed Nov 25, 2018
1 parent 495ed39 commit 80a60a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/errors.js
Expand Up @@ -813,7 +813,7 @@ describe('errors', () => {
type: 'date.base',
context: { label: 'y', key: 'y', value: NaN }
}]);
expect(err.annotate()).to.equal('{\n \"x\": {\n \"z\": Infinity,\n \"u\": -Infinity,\n \"g\": Symbol(foo),\n \"h\": -Infinity,\n \"i\": Infinity,\n \"k\": (a) => a,\n \"p\": Symbol(bar),\n \"f\": function (x) {\\n\\n return [{ y: 2 }];\\n },\n \"y\" \u001b[31m[1]\u001b[0m: NaN\n }\n}\n\u001b[31m\n[1] \"y\" must be a number of milliseconds or valid date string\u001b[0m');
expect(err.annotate().replace(/\\r/g, '')).to.equal('{\n \"x\": {\n \"z\": Infinity,\n \"u\": -Infinity,\n \"g\": Symbol(foo),\n \"h\": -Infinity,\n \"i\": Infinity,\n \"k\": (a) => a,\n \"p\": Symbol(bar),\n \"f\": function (x) {\\n\\n return [{ y: 2 }];\\n },\n \"y\" \u001b[31m[1]\u001b[0m: NaN\n }\n}\n\u001b[31m\n[1] \"y\" must be a number of milliseconds or valid date string\u001b[0m');
});

it('pinpoints an error in a stringified JSON object', async () => {
Expand Down

0 comments on commit 80a60a0

Please sign in to comment.