diff options
| author | fat <[email protected]> | 2015-05-13 14:52:46 -0700 |
|---|---|---|
| committer | fat <[email protected]> | 2015-05-13 14:52:46 -0700 |
| commit | 6b2b0ed32f485103f58fe42057e93a175e14bc2a (patch) | |
| tree | 9bf7481028591ea9c76d6203e827bd6156615d37 /js/tests | |
| parent | eaab1def7af7d7e1ab32ff69d043b46e2815ca22 (diff) | |
| download | bootstrap-6b2b0ed32f485103f58fe42057e93a175e14bc2a.tar.xz bootstrap-6b2b0ed32f485103f58fe42057e93a175e14bc2a.zip | |
al tests passing, dist rebuilt, w/typechecker
Diffstat (limited to 'js/tests')
| -rw-r--r-- | js/tests/unit/carousel.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/tests/unit/carousel.js b/js/tests/unit/carousel.js index 95345c39e..017bd9bee 100644 --- a/js/tests/unit/carousel.js +++ b/js/tests/unit/carousel.js @@ -33,6 +33,8 @@ $(function () { }) QUnit.test('should type check config options', function (assert) { + assert.expect(2) + var message var expectedMessage = 'CAROUSEL: Option "interval" provided type "string" but expected type "(number|boolean)".' var config = { @@ -48,7 +50,7 @@ $(function () { assert.ok(message === expectedMessage, 'correct error message') config = { - keyboard: $('div') + keyboard: document.createElement('div') } expectedMessage = 'CAROUSEL: Option "keyboard" provided type "element" but expected type "boolean".' |
