Ghost/ghost/admin/app/components/liquid-container.js
Kevin Ansfield e4b402c603 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
2022-05-30 12:10:37 +01:00

13 lines
314 B
JavaScript

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;
}
}
});