diff --git a/tests/results/focusing-tests.js b/tests/results/focusing-tests.js index 35aa1247..f23da8a0 100644 --- a/tests/results/focusing-tests.js +++ b/tests/results/focusing-tests.js @@ -137,7 +137,7 @@ test('results:append does not trigger results:focus', function (assert) { }); }); -test('scrollAfterSelect triggers results:focus by default', function (assert) { +test('scrollAfterSelect triggers results:focus', function (assert) { assert.expect(3); var $ = require('jquery'); @@ -156,7 +156,7 @@ test('scrollAfterSelect triggers results:focus by default', function (assert) { var Results = require('select2/results'); - var options = new Options({}); + var options = new Options({ scrollAfterSelect: false }); var results = new Results($select, options); // Fake the data adapter for the `setClasses` method @@ -238,4 +238,4 @@ test('!scrollAfterSelect does not trigger results:focus', function (assert) { }); container.trigger('select', {}); -}); \ No newline at end of file +});