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:
Jeff Avallone
2018-02-17 13:04:19 -05:00
parent 19d34a4d9e
commit 6ff9145603
17 changed files with 1018 additions and 8 deletions
+15
View File
@@ -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;