diff --git a/test/index.js b/test/index.js index 29a7e5c..28cba7d 100644 --- a/test/index.js +++ b/test/index.js @@ -281,6 +281,7 @@ it('should hide results if input is disabled', async function() { ]) ); + element.disabled = false; instance.destroy(); }); @@ -290,10 +291,13 @@ it('should display placeholder elements', async function() { const instance = fn(element, { async onQueryInput() { const data = await fetchData(); - return [].concat(data, { - content: '
', - value: null - }); + return [ + ...data, + { + content: '
', + value: null + } + ]; } });