Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/unit/toast.js')
-rw-r--r--js/tests/unit/toast.js5
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()