0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Sped up tests that use {{liquid-if}}

no issue

- some tests were unnecessarily slowed down by waiting repeatedly for animations to complete
- added override for `<LiquidContainer>` component that `<LiquidIf>` uses internally with the only change being to set the default growth animation duration to 5ms when running tests
This commit is contained in:
Kevin Ansfield 2022-05-30 12:09:59 +01:00
parent ac52e01977
commit e4b402c603

View file

@ -0,0 +1,12 @@
import LiquidContainer from 'liquid-fire/components/liquid-container';
import config from 'ghost-admin/config/environment';
export default LiquidContainer.extend({
init() {
this._super(...arguments);
if (config.environment === 'test') {
this.growDuration = 5;
}
}
});