diff options
| author | Pierre Vanduynslager <[email protected]> | 2017-03-21 13:21:00 -0400 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-03-21 10:21:00 -0700 |
| commit | 78fc4d23fcefe31397444b75f43728c38e13c590 (patch) | |
| tree | 88a35181ddc335d21a1959a8c19145a5c98073ba | |
| parent | cab6f7d16ca64dfcb0de002940d085c8cfe8b304 (diff) | |
| download | bootstrap-78fc4d23fcefe31397444b75f43728c38e13c590.tar.xz bootstrap-78fc4d23fcefe31397444b75f43728c38e13c590.zip | |
Always append element to fixture in Scrollspy unit tests (#22234)
| -rw-r--r-- | js/tests/unit/scrollspy.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/unit/scrollspy.js b/js/tests/unit/scrollspy.js index 877ec67a2..36c4c4076 100644 --- a/js/tests/unit/scrollspy.js +++ b/js/tests/unit/scrollspy.js @@ -26,7 +26,7 @@ $(function () { QUnit.test('should throw explicit error on undefined method', function (assert) { assert.expect(1) - var $el = $('<div/>') + var $el = $('<div/>').appendTo('#qunit-fixture') $el.bootstrapScrollspy() try { $el.bootstrapScrollspy('noMethod') @@ -38,7 +38,7 @@ $(function () { QUnit.test('should return jquery collection containing the element', function (assert) { assert.expect(2) - var $el = $('<div/>') + var $el = $('<div/>').appendTo('#qunit-fixture') var $scrollspy = $el.bootstrapScrollspy() assert.ok($scrollspy instanceof $, 'returns jquery collection') assert.strictEqual($scrollspy[0], $el[0], 'collection contains element') |
