release: WRNexusJS 0.5.10
This commit is contained in:
@@ -102,6 +102,25 @@ try {
|
||||
compiler.compileWireFile(good);
|
||||
ok("compiler accepts valid .wrn");
|
||||
|
||||
const structuredProps = `page FooterExample {
|
||||
state footerItems = [
|
||||
{
|
||||
"label": "Accessibility",
|
||||
"href": "/accessibility",
|
||||
"value": "accessibility"
|
||||
}
|
||||
]
|
||||
view {
|
||||
<Footer
|
||||
items={footerItems}
|
||||
options={{"dense":true}}
|
||||
links={[{"label":"Privacy","href":"/privacy"}]}
|
||||
/>
|
||||
}
|
||||
}`;
|
||||
compiler.compileWireFile(structuredProps);
|
||||
ok("compiler accepts native structured state and unquoted prop expressions");
|
||||
|
||||
const badSrc = `page Home {\n view { <h1>Hi</h2> }\n}`;
|
||||
let threw = false;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user