Skip to content

Commit 83a5cfd

Browse files
committed
✅ fix test for changed experimental syntax
1 parent 0dd6644 commit 83a5cfd

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

test/fixtures/issue21.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ import Vue from "vue";
77
import Component from "vue-class-component";
88
99
@Component({})
10-
export default class LintThis extends Vue { }
10+
class LintThis extends Vue { }
11+
12+
export default LintThis
1113
</script>

test/index.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -549,12 +549,9 @@ describe("Basic tests", () => {
549549
eslintVisitorKeys: true,
550550
})
551551

552+
assert.strictEqual(ast.body[2].range[0], indexOfDecorator)
552553
assert.strictEqual(
553-
ast.body[2].declaration.range[0],
554-
indexOfDecorator
555-
)
556-
assert.strictEqual(
557-
ast.body[2].declaration.decorators[0].range[0],
554+
ast.body[2].decorators[0].range[0],
558555
indexOfDecorator
559556
)
560557
})

0 commit comments

Comments
 (0)