update ut for validate

Signed-off-by: s00912778 <shijiakai2@huawei.com>
Change-Id: I2d762340dc8a6ed0ae4c89eca753ba0e6416937a
This commit is contained in:
s00912778 2024-10-22 11:01:58 +08:00
parent e2cec99dca
commit b997feb6a6
16 changed files with 21 additions and 23 deletions

View File

@ -195,10 +195,7 @@
"message": "The module name 'Button' can not be the same as the inner component name.", "message": "The module name 'Button' can not be the same as the inner component name.",
"type": "ERROR" "type": "ERROR"
}, },
"notComponent": { "notComponent": [],
"message": "Decorator '@Component', '@ComponentV2', or '@CustomDialog' is missing for struct 'EntryComponent'.",
"type": "ERROR"
},
"notConcurrent": { "notConcurrent": {
"message": "The struct 'NotConcurrentIndexDecorator' use invalid decorator.", "message": "The struct 'NotConcurrentIndexDecorator' use invalid decorator.",
"type": "WARN" "type": "WARN"

View File

@ -1,3 +1,4 @@
@Entry
struct EntryComponent{ struct EntryComponent{
build(){ build(){
Column(){ Column(){

View File

@ -1,4 +1,4 @@
declare const CustomMethod: PropertyDecorator; // declare const CustomMethod: PropertyDecorator;
@Entry @Entry
@Component @Component