summaryrefslogtreecommitdiff
path: root/spec/javascripts/smart_interval_spec.js.es6
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascripts/smart_interval_spec.js.es6')
-rw-r--r--spec/javascripts/smart_interval_spec.js.es62
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/javascripts/smart_interval_spec.js.es6 b/spec/javascripts/smart_interval_spec.js.es6
index 39d236986b9..e695454b8f7 100644
--- a/spec/javascripts/smart_interval_spec.js.es6
+++ b/spec/javascripts/smart_interval_spec.js.es6
@@ -164,7 +164,7 @@
const interval = this.smartInterval;
setTimeout(() => {
- $(document).trigger('page:before-unload');
+ $(document).trigger('beforeunload');
expect(interval.state.intervalId).toBeUndefined();
expect(interval.getCurrentInterval()).toBe(interval.cfg.startingInterval);
done();