Skip to content

Commit

Permalink
use createSource in test
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Jun 10, 2021
1 parent 430edb2 commit 369e91a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createMatchMedia } from '../../../../test/utils';
import { createMatchMedia, createSource } from '../../../../test/utils';
import { autocomplete } from '../autocomplete';

describe('detachedMediaQuery', () => {
Expand Down Expand Up @@ -30,10 +30,7 @@ describe('detachedMediaQuery', () => {
getSources() {
return [
{
sourceId: 'testSource',
getItems() {
return [{ label: 'Item 1' }];
},
...createSource({}),
templates: {
item({ item }) {
return item.label;
Expand Down

0 comments on commit 369e91a

Please sign in to comment.