Improving SVG mocking for tests
This commit is contained in:
parent
1fd797f52a
commit
24062d978a
@ -1 +1,5 @@
|
|||||||
module.exports = () => 'mock SVG';
|
import React from 'react';
|
||||||
|
|
||||||
|
const SvgMock = () => <svg></svg>;
|
||||||
|
|
||||||
|
export default SvgMock;
|
||||||
|
@ -19,7 +19,7 @@ exports[`Header rendering 1`] = `
|
|||||||
<a
|
<a
|
||||||
href="https://github.com/javallone/regexper-static"
|
href="https://github.com/javallone/regexper-static"
|
||||||
>
|
>
|
||||||
<Component />
|
<SvgMock />
|
||||||
<Trans>
|
<Trans>
|
||||||
Source on GitHub
|
Source on GitHub
|
||||||
</Trans>
|
</Trans>
|
||||||
|
Loading…
Reference in New Issue
Block a user