summaryrefslogtreecommitdiff
path: root/spec/javascripts
diff options
context:
space:
mode:
authorLuke Bennett <lbennett@gitlab.com>2019-02-25 22:17:11 +0000
committerLuke Bennett <lbennett@gitlab.com>2019-03-01 17:07:03 +0000
commita87fe585f23b78732af31d636bf134a90781ca4c (patch)
tree7e523bfa088230fdb31ba63dc80b61be089cecbf /spec/javascripts
parentadf71cfa75fb07c54cb2f55126d1f8596e3ab5c3 (diff)
downloadgitlab-ce-a87fe585f23b78732af31d636bf134a90781ca4c.tar.gz
Fix transient dirty submit
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/dirty_submit/dirty_submit_form_spec.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/javascripts/dirty_submit/dirty_submit_form_spec.js b/spec/javascripts/dirty_submit/dirty_submit_form_spec.js
index ae2a785de52..95cc90dcb0f 100644
--- a/spec/javascripts/dirty_submit/dirty_submit_form_spec.js
+++ b/spec/javascripts/dirty_submit/dirty_submit_form_spec.js
@@ -13,6 +13,8 @@ function expectToToggleDisableOnDirtyUpdate(submit, input) {
}
describe('DirtySubmitForm', () => {
+ DirtySubmitForm.THROTTLE_DURATION = 0;
+
it('disables submit until there are changes', done => {
const { form, input, submit } = createForm();