|
|
|
@ -30,7 +30,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
// Create a condition object that can be toggled
|
|
|
|
// Create a condition object that can be toggled
|
|
|
|
let shouldRun = true;
|
|
|
|
let shouldRun = true;
|
|
|
|
let conditionObject = {
|
|
|
|
const conditionObject = {
|
|
|
|
get condition() {
|
|
|
|
get condition() {
|
|
|
|
return shouldRun;
|
|
|
|
return shouldRun;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -40,7 +40,7 @@ export default {
|
|
|
|
component.visible = false;
|
|
|
|
component.visible = false;
|
|
|
|
raf.tick(400);
|
|
|
|
raf.tick(400);
|
|
|
|
assert.htmlEqual(target.innerHTML, '');
|
|
|
|
assert.htmlEqual(target.innerHTML, '');
|
|
|
|
|
|
|
|
|
|
|
|
// in: true, out: false
|
|
|
|
// in: true, out: false
|
|
|
|
shouldRun = true;
|
|
|
|
shouldRun = true;
|
|
|
|
component.visible = true;
|
|
|
|
component.visible = true;
|
|
|
|
|