Created
May 14, 2020 18:38
-
-
Save ryanvazquez/0f4002a175d4aa9400c986d8aaff6c47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Summary of all failing tests | |
FAIL [2msrc/plugins/lineage/DagreGrNode.test.js | |
● <Node /> › renders the supplied element | |
TypeError: Cannot assign to read only property 'getBBox' of object '[object HTMLUnknownElement]' | |
[2m[22m | |
[2m 10 | describe('<Node />', () => {[22m | |
[2m 11 | beforeEach(() => {[22m | |
[2m> 12 | window.HTMLUnknownElement.prototype.getBBox = function() {[22m | |
[2m | ^[22m | |
[2m 13 | return { width: 100, height: 100 };[22m | |
[2m 14 | };[22m | |
[2m 15 | });[22m | |
[2m[22m | |
[2m [2mat Object.<anonsrc/plugins/lineage/DagreGraph/Node.test.js[2m:12:5)[22m[2m[22m | |
● <Node /> › passes down props to the render method | |
TypeError: Cannot assign to read only property 'getBBox' of object '[object HTMLUnknownElement]' | |
[2m[22m | |
[2m 10 | describe('<Node />', () => {[22m | |
[2m 11 | beforeEach(() => {[22m | |
[2m> 12 | window.HTMLUnknownElement.prototype.getBBox = function() {[22m | |
[2m | ^[22m | |
[2m 13 | return { width: 100, height: 100 };[22m | |
[2m 14 | };[22m | |
[2m 15 | });[22m | |
[2m[22m | |
[2m [2mat Object.<anonsrc/plugins/lineage/DagreGraph/Node.test.js[2m:12:5)[22m[2m[22m | |
● <Node /> › calls setNode with node ID and actual size after rendering | |
TypeError: Cannot assign to read only property 'getBBox' of object '[object HTMLUnknownElement]' | |
[2m[22m | |
[2m 10 | describe('<Node />', () => {[22m | |
[2m 11 | beforeEach(() => {[22m | |
[2m> 12 | window.HTMLUnknownElement.prototype.getBBox = function() {[22m | |
[2m | ^[22m | |
[2m 13 | return { width: 100, height: 100 };[22m | |
[2m 14 | };[22m | |
[2m 15 | });[22m | |
[2m[22m | |
[2m [2mat Object.<anonsrc/plugins/lineage/DagreGraph/Node.test.js[2m:12:5)[22m[2m[22m | |
● <Node /> › calls setNode with node ID and actual size after rendering | |
[2mexpjest.fn()[2m).[22mtoHaveBeenCa...expected[2m)[22m | |
- Expected | |
+ Received | |
[2m"abc"[22m, | |
[2m Object {[22m | |
- "height": 100, | |
+ "height": 500, | |
[2m "id": "abc",[22m | |
- "width": 100, | |
+ "width": 1000, | |
[2m }[22m, | |
Number of calls: 1 | |
[2m[22m | |
[2m 43 | expect(getByText('abc')).toBeInTheDocument();[22m | |
[2m 44 | // Updates the node in the graph[22m | |
[2m> 45 | expect(setNode).toHaveBeenCalledWith('abc', { height: 100, width: 100, id: 'abc' });[22m | |
[2m | ^[22m | |
[2m 46 | [22m | |
[2m 47 | // Renders with initial values and propagates calculated values to the rendered element[22m | |
[2m 48 | expect(renderElement).toHaveBeenCalledTimes(2);[22m | |
[2m[22m | |
[2m [2mat Object.toHaveBeenCallsrc/plugins/lineage/DagreGraph/Node.test.js[2m:45:21)[22m[2m[22m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment