mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
e4b402c603
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
13 lines
314 B
JavaScript
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;
|
|
}
|
|
}
|
|
});
|