diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index d55a552ade..e081a6dc25 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -684,6 +684,9 @@ $(function () { }).on('hidden.bs.modal', function () { assert.strictEqual(count, 1, 'show() runs only once') done() - }).bootstrapModal('show').bootstrapModal('show').bootstrapModal('hide') + }) + .bootstrapModal('show') + .bootstrapModal('show') + .bootstrapModal('hide') }) })