test params initted in right order

This commit is contained in:
metacryst
2024-03-28 10:14:21 -05:00
parent 0252b92554
commit cbd1e613e3
2 changed files with 28 additions and 2 deletions

View File

@@ -205,5 +205,31 @@ window.testSuites.push( class testShadow {
throw e
}
}
}
}
FieldsInCorrectOrder() {
window.register(class ChildSpace extends Shadow {
$$form
$name
render = () => {
}
constructor() {
super()
this.name = this.form.path.split("/").pop()
}
}, randomName("space-"))
try {
let space = ChildSpace({path: "/asd"})
} catch(e) {
if(e.message.includes("Cannot read properties of undefined (reading 'path')")) {
return "Form did not get initialized!"
} else {
throw e
}
}
}
})