From 74cc0d7dc989dbe63c1edf23ceed2dbe258ea7d0 Mon Sep 17 00:00:00 2001 From: Globits Date: Mon, 13 Mar 2017 16:10:47 +0100 Subject: [PATCH] fix for test basic.html. Initial item selected should be item2, #126 --- test/basic.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/basic.html b/test/basic.html index 08866bb..e9dbfc0 100644 --- a/test/basic.html +++ b/test/basic.html @@ -167,7 +167,7 @@ }); test('`selectIndex()` selects an item with the given index', function() { - assert.equal(s2.selectedItem, undefined); + assert.equal(s2.selectedItem, s2.items[2]); s2.selectIndex(1); assert.equal(s2.selected, 'item1');