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
|
||||
href="https://github.com/javallone/regexper-static"
|
||||
>
|
||||
<Component />
|
||||
<SvgMock />
|
||||
<Trans>
|
||||
Source on GitHub
|
||||
</Trans>
|
||||
|
Loading…
Reference in New Issue
Block a user