Moving styles, Stacks working in Group
This commit is contained in:
@@ -15,4 +15,24 @@ window.testSuites.push( class testGroup {
|
||||
}
|
||||
}
|
||||
|
||||
VStack() {
|
||||
let divs = Group(() => {
|
||||
VStack(() => {
|
||||
div()
|
||||
div()
|
||||
div()
|
||||
})
|
||||
})
|
||||
|
||||
if(!(divs instanceof HTMLElement)) {
|
||||
return `Did not receive an element!`
|
||||
}
|
||||
if(!(divs.style.display === "flex")) {
|
||||
return `Did not receive a flex container!`
|
||||
}
|
||||
if(!(divs.children.length === 3)) {
|
||||
return `Incorrect amount of children!`
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user