Skip to content

Commit 1a585e9

Browse files
authored
test: update test to make colon acceptable
1 parent e3974a6 commit 1a585e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils/__tests__/checkTemplate.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ test("throw error when invalid character attributes", () => {
267267
).toThrowError("[VueLive] Invalid attribute name: $s");
268268
});
269269

270-
test("throw error when invalid character attributes", () => {
270+
test("throw error when invalid character attributes $", () => {
271271
expect(() =>
272272
checkTemplate({
273273
template: `<div $s="as">
@@ -277,14 +277,14 @@ test("throw error when invalid character attributes", () => {
277277
).toThrowError("[VueLive] Invalid attribute name: $s");
278278
});
279279

280-
test("throw error when invalid character attributes", () => {
280+
test("throw error when invalid character attributes +", () => {
281281
expect(() =>
282282
checkTemplate({
283-
template: `<div s:tata="as">
283+
template: `<div s+tata="as">
284284
<div/>
285285
</div>`,
286286
})
287-
).toThrowError("[VueLive] Invalid attribute name: s:tata");
287+
).toThrowError("[VueLive] Invalid attribute name: s+tata");
288288
});
289289

290290
test("not error when all attributes are valid", () => {

0 commit comments

Comments
 (0)