Adding tests for SVG components
Jest/enzyme/jsdom is kicking out some nastly looking messages because it doesn't recognize various SVG elements, but they appear to be harmless.
This commit is contained in:
1 parent
19d34a4d9e
commit
6ff9145603
17 files changed
+1018
-8
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import React from 'react';
|
||||
|
||||
import Base from 'components/SVG/Base';
|
||||
|
||||
class SVGElement extends Base {
|
||||
reflow() {
|
||||
return this.setBBox(this.props.bbox);
|
||||
}
|
||||
|
||||
render() {
|
||||
return <text>Mock content</text>;
|
||||
}
|
||||
}
|
||||
|
||||
export default SVGElement;
|
||||
Reference in new issue
Block a user