Add unit tests for workflow improvements
Closed this issue · 1 comments
jwildfire commented
Adding tests for the following:
- chart object is bound to
div.wc-chart
oncreateChart()
- control object is bound to
div.wc-controls
oncreateControls()
- each mark group has it's ID attached as a class
- config marks is copied to chart.marks
- d3.selection for g.supergroup element bound to each item in chart.marks array
- d3.selection for g.groups elements bound to each item in chart.marks array
- d3.selection for specific d3 marks (circles, paths, etc) bound to each item in chart.marks array expect for when type=bar
- d3.selection containing all mark supergroups bound as property to the chart.marks array object
- all expected data sets (initial_data, raw_data, filtered_data, current_data) are found after chart.draw is called