feat: 增加商品组件
This commit is contained in:
@@ -40,4 +40,25 @@ for (const snippet of forbiddenCompatibilitySnippets) {
|
||||
);
|
||||
}
|
||||
|
||||
const requiredStrictRenderingSnippets = [
|
||||
"LONG_TEXT_KEYS.sceneImage",
|
||||
"LONG_TEXT_KEYS.commodityList",
|
||||
"commodity.commodity_id",
|
||||
"commodity.commodity_name",
|
||||
"commodity.commodity_price",
|
||||
"commodity.commodity_tag",
|
||||
"commodity.commodity_photo",
|
||||
"content-body-list-marker",
|
||||
"entry.value.length > 1",
|
||||
"formatListMarker(index)",
|
||||
];
|
||||
|
||||
for (const snippet of requiredStrictRenderingSnippets) {
|
||||
assert.equal(
|
||||
source.includes(snippet),
|
||||
true,
|
||||
`ParsedValueView should render exact strict field: ${snippet}`
|
||||
);
|
||||
}
|
||||
|
||||
console.log("ParsedValueView strict field checks passed");
|
||||
|
||||
Reference in New Issue
Block a user