Skip to content

Commit 5e57c67

Browse files
committed
update
1 parent 342dfe9 commit 5e57c67

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-output.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
"body": [
101101
{
102102
"type": "ExportNamedDeclaration",
103-
"assertions": [],
104103
"declaration": {
105104
"type": "VariableDeclaration",
106105
"kind": "let",

tests/fixtures/parser/ast/ts-event01-output.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
"body": [
101101
{
102102
"type": "ImportDeclaration",
103-
"assertions": [],
104103
"importKind": "value",
105104
"source": {
106105
"type": "Literal",

tests/fixtures/parser/ast/ts-event02-output.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
"body": [
101101
{
102102
"type": "ImportDeclaration",
103-
"assertions": [],
104103
"importKind": "value",
105104
"source": {
106105
"type": "Literal",

tests/src/parser/test-utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ export function nodeReplacer(key: string, value: any): any {
164164
if (key === "parent") {
165165
return undefined
166166
}
167+
if (key === "assertions" && Array.isArray(value) && value.length === 0) {
168+
return undefined
169+
}
167170
if (value instanceof RegExp) {
168171
return String(value)
169172
}

0 commit comments

Comments
 (0)