diff options
Diffstat (limited to 'js/tests/unit/toast.js')
-rw-r--r-- | js/tests/unit/toast.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/tests/unit/toast.js b/js/tests/unit/toast.js index ffd929646e..57f953bd17 100644 --- a/js/tests/unit/toast.js +++ b/js/tests/unit/toast.js @@ -41,8 +41,8 @@ $(function () { try { $el.bootstrapToast('noMethod') - } catch (err) { - assert.strictEqual(err.message, 'No method named "noMethod"') + } catch (error) { + assert.strictEqual(error.message, 'No method named "noMethod"') } }) @@ -208,7 +208,6 @@ $(function () { .bootstrapToast('show') }) - QUnit.test('should close toast when close element with data-dismiss attribute is set', function (assert) { assert.expect(2) var done = assert.async() |