notes & logs

This commit is contained in:
metacryst
2024-03-15 16:18:25 -05:00
parent 3b7aad5786
commit 0675c391db
3 changed files with 62 additions and 0 deletions

View File

@@ -1,5 +1,22 @@
window.testSuites.push( class testParse {
testParseClassFieldsWithNoDefault() {
class Space extends HTMLElement {
form
contents = []
constructor() {
super()
}
}
const fields = window.Registry.parseClassFields(Space);
if(!(JSON.stringify(fields) === JSON.stringify(["form", "contents"]))) {
return `Fields don't match`
}
}
testParseClassFieldsWithEqualityCheck() {
class Space extends HTMLElement {
form = Forms.observe(window.location.pathname, this)