Skip to content

Commit

Permalink
remove superfluous tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Jun 11, 2021
1 parent 0c22699 commit 24b7895
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
Expand Up @@ -42,25 +42,6 @@ describe('connectDynamicWidgets', () => {
See documentation: https://www.algolia.com/doc/api-reference/widgets/dynamic-widgets/js/#connector"
`);
});

it('minimal usage', () => {
expect(() =>
EXPERIMENTAL_connectDynamicWidgets(() => {})({
widgets: [],
})
).not.toThrow();
});

it('transformItems', () => {
expect(() =>
EXPERIMENTAL_connectDynamicWidgets(() => {})({
widgets: [],
transformItems(items, { results }) {
return items.map(item => item + results.nbHits);
},
})
).not.toThrow();
});
});

describe('init', () => {
Expand Down
9 changes: 0 additions & 9 deletions src/widgets/dynamic-widgets/__tests__/dynamic-widgets-test.ts
Expand Up @@ -51,15 +51,6 @@ describe('dynamicWidgets()', () => {
`);
});

test('transformItems is not required', () => {
expect(() =>
EXPERIMENTAL_dynamicWidgets({
container: document.createElement('div'),
widgets: [],
})
).not.toThrowError();
});

test('all options', () => {
expect(() =>
EXPERIMENTAL_dynamicWidgets({
Expand Down

0 comments on commit 24b7895

Please sign in to comment.