Adding Group
This commit is contained in:
18
Test/Element/Group.test.js
Normal file
18
Test/Element/Group.test.js
Normal file
@@ -0,0 +1,18 @@
|
||||
window.testSuites.push( class testGroup {
|
||||
|
||||
BasicDivs() {
|
||||
let divs = Group(() => {
|
||||
div()
|
||||
div()
|
||||
div()
|
||||
})
|
||||
|
||||
if(!(divs instanceof HTMLElement)) {
|
||||
return `Did not receive an element!`
|
||||
}
|
||||
if(!(divs.children.length === 3)) {
|
||||
return `Incorrect amount of children!`
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
13
Test/test.js
13
Test/test.js
@@ -1,12 +1,13 @@
|
||||
console.log("Tests initializing.")
|
||||
window.testSuites = [];
|
||||
|
||||
await import ("./parse.test.js")
|
||||
await import ("./init.test.js")
|
||||
await import ("./observedobject.test.js")
|
||||
await import ("./parserender.test.js")
|
||||
await import ("./stacks.test.js")
|
||||
await import ("./state.test.js")
|
||||
await import ("./Skeleton/parse.test.js")
|
||||
await import ("./Skeleton/init.test.js")
|
||||
await import ("./Skeleton/observedobject.test.js")
|
||||
await import ("./Skeleton/parserender.test.js")
|
||||
await import ("./Skeleton/state.test.js")
|
||||
await import ("./Element/stacks.test.js")
|
||||
await import ("./Element/Group.test.js")
|
||||
|
||||
window.randomName = function randomName(prefix) {
|
||||
const sanitizedPrefix = prefix.toLowerCase().replace(/[^a-z0-9]/g, '');
|
||||
|
||||
Reference in New Issue
Block a user