diff options
| author | XhmikosR <[email protected]> | 2020-06-12 21:50:30 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-09-10 12:06:30 +0300 |
| commit | 3be585990cd017736df97a418e135e5cf2382d5a (patch) | |
| tree | 6c094dd4c9c4610445408ae5e46372198c6492c4 /js/tests/unit/collapse.js | |
| parent | 1c37a2ba77002331376c0b70abb7fc1acf02a70b (diff) | |
| download | bootstrap-3be585990cd017736df97a418e135e5cf2382d5a.tar.xz bootstrap-3be585990cd017736df97a418e135e5cf2382d5a.zip | |
Comply to the new rules
Diffstat (limited to 'js/tests/unit/collapse.js')
| -rw-r--r-- | js/tests/unit/collapse.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/js/tests/unit/collapse.js b/js/tests/unit/collapse.js index 73bf6b35f..293c7cada 100644 --- a/js/tests/unit/collapse.js +++ b/js/tests/unit/collapse.js @@ -31,8 +31,8 @@ $(function () { $el.bootstrapCollapse() try { $el.bootstrapCollapse('noMethod') - } catch (err) { - assert.strictEqual(err.message, 'No method named "noMethod"') + } catch (error) { + assert.strictEqual(error.message, 'No method named "noMethod"') } }) @@ -457,7 +457,7 @@ $(function () { '<div class="card"/>' + '</div>' var showFired = false - var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.card') + var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.card') var $target1 = $('<a role="button" data-toggle="collapse" href="#body1"/>').appendTo($groups.eq(0)) @@ -468,7 +468,7 @@ $(function () { }) var $target2 = $('<a role="button" data-toggle="collapse" href="#body2"/>').appendTo($groups.eq(1)) - var $body2 = $('<div id="body2" class="collapse" data-parent="#accordion"/>').appendTo($groups.eq(1)) + var $body2 = $('<div id="body2" class="collapse" data-parent="#accordion"/>').appendTo($groups.eq(1)) $target2.trigger('click') @@ -604,8 +604,8 @@ $(function () { var $collapseTwoOne = $('#collapseTwoOne') var $collapseTwoTwo = $('#collapseTwoTwo') var collapsedElements = { - one : false, - two : false + one: false, + two: false } function firstTest() { @@ -830,7 +830,7 @@ $(function () { parent: $('.my-collapse') }) assert.ok(true, 'collapse correctly created') - } catch (err) { + } catch (_) { assert.ok(false, 'collapse not created') } }) @@ -851,7 +851,7 @@ $(function () { parent: $('.my-collapse')[0] }) assert.ok(true, 'collapse correctly created') - } catch (err) { + } catch (_) { assert.ok(false, 'collapse not created') } }) |
