Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
niksy committed Jul 29, 2019
1 parent 411617e commit 10a8733
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ it('should hide results if input is disabled', async function() {
])
);

element.disabled = false;
instance.destroy();
});

Expand All @@ -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: '<hr />',
value: null
});
return [
...data,
{
content: '<hr />',
value: null
}
];
}
});

Expand Down

0 comments on commit 10a8733

Please sign in to comment.