summaryrefslogtreecommitdiff
path: root/spec/javascripts/smart_interval_spec.js.es6
diff options
context:
space:
mode:
authorBryce Johnson <bryce@gitlab.com>2017-01-13 16:54:16 -0500
committerBryce Johnson <bryce@gitlab.com>2017-01-30 15:38:28 -0500
commit540da9b283a0884947915d761ddb731379ceaafb (patch)
treef24e5a412ebfd3e8c222877f4044b63b446ce415 /spec/javascripts/smart_interval_spec.js.es6
parenta0734363b1b2c5073f810f3b189670d4a8ecbc54 (diff)
downloadgitlab-ce-turbolinks-ee-compat.tar.gz
Port of 25624-anticipate-obstacles-to-removing-turbolinks to EE.turbolinks-ee-compat
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();