Add missing spec for computed prop strokeDashArray
This commit is contained in:
parent
6fa53d297f
commit
b49fab4c2b
1 changed files with 17 additions and 0 deletions
|
@ -32,4 +32,21 @@ describe('Monitoring Paths', () => {
|
|||
expect(metricLine.getAttribute('stroke')).toBe('#1f78d1');
|
||||
expect(metricLine.getAttribute('d')).toBe(firstTimeSeries.linePath);
|
||||
});
|
||||
|
||||
describe('Computed properties', () => {
|
||||
it('strokeDashArray', () => {
|
||||
const component = createComponent({
|
||||
generatedLinePath: firstTimeSeries.linePath,
|
||||
generatedAreaPath: firstTimeSeries.areaPath,
|
||||
lineColor: firstTimeSeries.lineColor,
|
||||
areaColor: firstTimeSeries.areaColor,
|
||||
});
|
||||
|
||||
component.lineStyle = 'dashed';
|
||||
expect(component.strokeDashArray).toBe('3, 1');
|
||||
|
||||
component.lineStyle = 'dotted';
|
||||
expect(component.strokeDashArray).toBe('1, 1');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue