Skip to content

Commit 41fe5e8

Browse files
committed
Some updates
1 parent bfed18b commit 41fe5e8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-spec",
3-
"version": "0.1.68",
3+
"version": "0.1.69",
44
"license": "LGPL-3.0",
55
"homepage": "https://github.com/js-works/js-spec",
66
"main": "index.js",

src/main/internal/createSpecError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function createSpecError(errMsg: string, path: string | null): Sp
77
const
88
fullErrMsg =
99
'Constraint violation'
10-
+ (path ? ` at '${path}'` : '')
10+
+ (path ? ` for '${path}'` : '')
1111
+ `: ${errMsg}`
1212

1313
return new SpecError(fullErrMsg, errMsg, path)

src/test/api/Spec.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ describe('Spec', () => {
924924
expect(result).to.be.instanceof(SpecError)
925925

926926
expect(result.message).to.eql(
927-
"Constraint violation at 'level1.level2.arr.1': "
927+
"Constraint violation for 'level1.level2.arr.1': "
928928
+ 'Must be an integer')
929929

930930
expect(result.hint).to.eql('Must be an integer')

0 commit comments

Comments
 (0)