(n)
| 480 | }); |
| 481 | |
| 482 | function nthChart (n) { |
| 483 | const subChart = d3.select(compositeChart.selectAll('g.sub').nodes()[n]); |
| 484 | |
| 485 | subChart.expectPlotSymbolsToHaveClass = function (className) { |
| 486 | subChart.selectAll('path.symbol').each(function () { |
| 487 | expect(d3.select(this).classed(className)).toBeTruthy(); |
| 488 | }); |
| 489 | }; |
| 490 | |
| 491 | subChart.expectPlotSymbolsToHaveSize = function (size) { |
| 492 | const match = matchSymbolSize(size); |
| 493 | subChart.selectAll('path.symbol').each(function () { |
| 494 | expect(match.apply(this)).toBeTruthy(); |
| 495 | }); |
| 496 | }; |
| 497 | |
| 498 | subChart.expectPlotSymbolsNotToHaveClass = function (className) { |
| 499 | subChart.selectAll('path.symbol').each(function () { |
| 500 | expect(d3.select(this).classed(className)).toBeFalsy(); |
| 501 | }); |
| 502 | }; |
| 503 | |
| 504 | return subChart; |
| 505 | } |
| 506 | }); |
| 507 | describe('with ordinal axes', () => { |
| 508 | beforeEach(() => { |
no test coverage detected
searching dependent graphs…