From c2acb18509095226ff053c06fa3720c812e87786 Mon Sep 17 00:00:00 2001 From: Pedro Felipe de Azevedo Furtado Date: Fri, 14 Sep 2018 23:54:19 -0300 Subject: [PATCH] Update focusing-tests.js --- tests/results/focusing-tests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +});