From d813fdf742d309ebd7e74fae342bbbe6a98d94ae Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sun, 24 Mar 2019 12:57:09 -0400 Subject: [PATCH] Updating component mock to handle non-standard attrs --- src/__mocks__/component-mock.js | 4 +++- src/components/SentryError/__snapshots__/test.js.snap | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/__mocks__/component-mock.js b/src/__mocks__/component-mock.js index ba6ef4c..ac50082 100644 --- a/src/__mocks__/component-mock.js +++ b/src/__mocks__/component-mock.js @@ -3,7 +3,9 @@ const React = require('react'); const buildMock = component => { const componentName = component.displayName || component.name || 'Component'; const Mock = ({ children, ...props }) => ( - { children } + { children } ); Mock.propTypes = component.propTypes; return Mock; diff --git a/src/components/SentryError/__snapshots__/test.js.snap b/src/components/SentryError/__snapshots__/test.js.snap index bd27abf..2bf482e 100644 --- a/src/components/SentryError/__snapshots__/test.js.snap +++ b/src/components/SentryError/__snapshots__/test.js.snap @@ -4,12 +4,15 @@ exports[`SentryError rendering 1`] = `

This error has been logged. You may also