Skip to content

Commit 84bd0be

Browse files
authored
test: update snapshots (#208)
1 parent 3b237f9 commit 84bd0be

File tree

4 files changed

+98
-116
lines changed

4 files changed

+98
-116
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
"consola": "^2.15.0",
5656
"prettier": "^2.1.2"
5757
},
58-
"publishConfig": {
59-
"access": "public"
60-
},
6158
"volta": {
6259
"node": "16.16.0"
60+
},
61+
"publishConfig": {
62+
"access": "public"
6363
}
6464
}

test/__snapshots__/validator.test.ts.snap

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ Array [
88
"messages": Array [
99
Object {
1010
"column": 42,
11-
"context": undefined,
11+
"context": Object {
12+
"ancestor": "<a>",
13+
"child": "<a>",
14+
"kind": "descendant",
15+
},
1216
"line": 1,
13-
"message": "Element <a> is not permitted as descendant of <a>",
17+
"message": "<a> element is not permitted as a descendant of <a>",
1418
"offset": 41,
1519
"ruleId": "element-permitted-content",
1620
"ruleUrl": "https://html-validate.org/rules/element-permitted-content.html",

test/module.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('Nuxt module', () => {
4545
)
4646
expect(mockReporter.error).toHaveBeenCalledWith(
4747
expect.stringContaining(
48-
'Element <a> is not permitted as descendant of <a>'
48+
'<a> element is not permitted as a descendant of <a>'
4949
)
5050
)
5151
}, 50000)

0 commit comments

Comments
 (0)