Skip to content

Commit 0912a4e

Browse files
authored
vuejs#564 update test
1 parent 3ccf3ef commit 0912a4e

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

tests/lib/rules/require-default-prop.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,24 @@ ruleTester.run('require-default-prop', rule, {
113113
}
114114
}
115115
`
116-
}
116+
},
117+
118+
{
119+
filename: 'test.vue',
120+
code: `
121+
import Vue, { PropOptions } from "vue";
122+
123+
export default Vue.extend({
124+
props: {
125+
msg: {
126+
type: String,
127+
required: true
128+
} as PropOptions<string>
129+
}
130+
});
131+
`,
132+
parser: "typescript-eslint-parser"
133+
},
117134
],
118135

119136
invalid: [

0 commit comments

Comments
 (0)