Skip to content

Commit 3832bcd

Browse files
committed
CI
1 parent f62d4de commit 3832bcd

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

lib/types.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ export interface VDirectiveKeyV5 extends AST.HasLocation, AST.HasParent {
3030
type: "VDirectiveKey"
3131
name: string
3232
argument: string | null
33-
modifiers: [string]
33+
modifiers: string[]
34+
parent: AST.VAttribute
3435
shorthand: boolean
36+
raw: {
37+
name: string
38+
argument: string | null
39+
modifiers: string[]
40+
}
3541
}
3642
export interface VDirectiveKeyV6 extends AST.HasLocation, AST.HasParent {
3743
type: "VDirectiveKey"

tests/lib/styles/parser/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ describe("CSS Nodes Test.", () => {
6666
if (!style.cssNode) {
6767
throw new Error("invalid")
6868
}
69+
if (style.cssNode.errors.length) {
70+
return
71+
}
6972
checkCSSNodeLocations(source, style.cssNode, style.lang)
7073
})
7174
it("should be parsed to valid AST.", () => {

0 commit comments

Comments
 (0)