We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1269f47 commit 0375eb0Copy full SHA for 0375eb0
test/v1/examples.test.js
@@ -208,10 +208,10 @@ describe('examples', () => {
208
// end::cypher-error[]
209
210
testResultPromise.then(loggedMsg => {
211
- expect(loggedMsg).toBe(
+ expect(removeLineBreaks(loggedMsg)).toBe(removeLineBreaks(
212
'Invalid input \'L\': expected \'t/T\' (line 1, column 3 (offset: 2))\n' +
213
'"SELECT * FROM Employees WHERE name = $name"\n' +
214
- ' ^');
+ ' ^'));
215
done();
216
});
217
@@ -450,3 +450,7 @@ describe('examples', () => {
450
451
452
453
+
454
+function removeLineBreaks(string) {
455
+ return string.replace(/(\r\n|\n|\r)/gm, ' ');
456
+}
0 commit comments