Skip to content

Commit 0ea0d2f

Browse files
committed
fix: fixed wrong specs.
1 parent 69753f3 commit 0ea0d2f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/fixture/syntaxTest/langIsTypeScript.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div></div>
33
</template>
4-
<script setup lang="ts">
4+
<script lang="ts">
55
export default {
66
created() {
77
const num: number = 0;

test/fixture/syntaxTest/langIsTypeScriptWithSetup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div></div>
33
</template>
4-
<script lang="ts">
4+
<script setup lang=ts>
55
const num: number = 0;
66
const str: string = '';
77
const bool: boolean = false;

test/specs/syntax.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('syntax test', () => {
4242
expect(declaration).toStrictEqual({
4343
name: '/test/fixture/syntaxTest/langIsTypeScript.vue',
4444
props: '',
45-
size: 198,
45+
size: 192,
4646
lastModifiedTime: 0,
4747
children: [],
4848
});
@@ -55,7 +55,7 @@ describe('syntax test', () => {
5555
expect(declaration).toStrictEqual({
5656
name: '/test/fixture/syntaxTest/langIsTypeScriptWithSetup.vue',
5757
props: '',
58-
size: 142,
58+
size: 146,
5959
lastModifiedTime: 0,
6060
children: [],
6161
});

0 commit comments

Comments
 (0)