Skip to content

Commit 10c44e5

Browse files
committed
fix extra newline in validation
1 parent 46dc08e commit 10c44e5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

schemas/ajv.absolutePath.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
const getErrorFor = (shouldBeAbsolute, data, schema) => {
44
const message = shouldBeAbsolute ?
5-
`The provided value ${JSON.stringify(data)} is not an absolute path!\n`
6-
: `A relative path is expected. However the provided value ${JSON.stringify(data)} is an absolute path!\n`;
5+
`The provided value ${JSON.stringify(data)} is not an absolute path!`
6+
: `A relative path is expected. However the provided value ${JSON.stringify(data)} is an absolute path!`;
77

88
return {
99
keyword: "absolutePath",

test/Validation.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ describe("Validation", () => {
185185
},
186186
message: [
187187
" - configuration.output.filename: A relative path is expected. However the provided value \"/bar\" is an absolute path!",
188-
"",
189188
]
190189
}, {
191190
name: "absolute path",
@@ -198,7 +197,6 @@ describe("Validation", () => {
198197
},
199198
message: [
200199
" - configuration.context: The provided value \"baz\" is not an absolute path!",
201-
"",
202200
]
203201
}];
204202
testCases.forEach((testCase) => {

0 commit comments

Comments
 (0)