mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-04 16:16:41 +02:00
add config to test files
Co-authored-by: Pranav Mishra <mishrap@dickinson.edu>
This commit is contained in:
@@ -389,6 +389,11 @@ describe('XY Chart', () => {
|
|||||||
// In this test, we create two bar plots. The default config should render labels for each.
|
// In this test, we create two bar plots. The default config should render labels for each.
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`
|
`
|
||||||
|
---
|
||||||
|
config:
|
||||||
|
xyChart:
|
||||||
|
showDataLabel: true
|
||||||
|
---
|
||||||
xychart-beta
|
xychart-beta
|
||||||
title "Multiple Bar Plots"
|
title "Multiple Bar Plots"
|
||||||
x-axis Categories [A, B, C]
|
x-axis Categories [A, B, C]
|
||||||
@@ -403,6 +408,11 @@ describe('XY Chart', () => {
|
|||||||
it('should render a single bar with label', () => {
|
it('should render a single bar with label', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`
|
`
|
||||||
|
---
|
||||||
|
config:
|
||||||
|
xyChart:
|
||||||
|
showDataLabel: true
|
||||||
|
---
|
||||||
xychart-beta
|
xychart-beta
|
||||||
title "Single Bar Chart"
|
title "Single Bar Chart"
|
||||||
x-axis Categories [A]
|
x-axis Categories [A]
|
||||||
@@ -416,6 +426,11 @@ describe('XY Chart', () => {
|
|||||||
it('should render negative and decimal values with correct labels', () => {
|
it('should render negative and decimal values with correct labels', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`
|
`
|
||||||
|
---
|
||||||
|
config:
|
||||||
|
xyChart:
|
||||||
|
showDataLabel: true
|
||||||
|
---
|
||||||
xychart-beta
|
xychart-beta
|
||||||
title "Decimal and Negative Values"
|
title "Decimal and Negative Values"
|
||||||
x-axis Categories [A, B, C]
|
x-axis Categories [A, B, C]
|
||||||
|
Reference in New Issue
Block a user