Improving SVG mocking for tests

This commit is contained in:
Jeff Avallone 2018-02-13 17:17:55 -05:00
parent 1fd797f52a
commit 24062d978a
2 changed files with 6 additions and 2 deletions

View File

@ -1 +1,5 @@
module.exports = () => 'mock SVG';
import React from 'react';
const SvgMock = () => <svg></svg>;
export default SvgMock;

View File

@ -19,7 +19,7 @@ exports[`Header rendering 1`] = `
<a
href="https://github.com/javallone/regexper-static"
>
<Component />
<SvgMock />
<Trans>
Source on GitHub
</Trans>