Improving SVG mocking for tests
This commit is contained in:
1 parent
1fd797f52a
commit
24062d978a
2 files changed
+6
-2
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user