Skip to content
This repository was archived by the owner on Mar 27, 2018. It is now read-only.

Commit 8c9c65f

Browse files
committed
fix(entity-list-mapper): change entityWrapper propType
1 parent 592650b commit 8c9c65f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/EntityListMapper.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ EntityListMapper.propTypes = {
3030
}),
3131
PropTypes.string,
3232
])).isRequired,
33-
entityWrapper: PropTypes.element,
33+
entityWrapper: PropTypes.oneOfType([
34+
PropTypes.string,
35+
PropTypes.func,
36+
]),
3437
entityProps: PropTypes.shape(),
3538
asyncMapper: PropTypes.bool,
3639
};

src/components/deprecated/Paragraph.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jest.mock('../../site', () => {
1010
});
1111

1212
jest.mock('util-deprecate', () => jest.fn((func) => func));
13+
console.log = console.warn = console.error = jest.fn((message) => { throw new Error(message); });
1314

1415
beforeEach(() => {
1516
site.getData.mockRestore();

src/components/deprecated/Paragraphs.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jest.mock('../../site', () => {
1010
});
1111

1212
jest.mock('util-deprecate', () => jest.fn((func) => func));
13+
console.log = console.warn = console.error = (message) => { throw new Error(message); };
1314

1415
beforeEach(() => {
1516
site.getData.mockRestore();

0 commit comments

Comments
 (0)