mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 15:30:03 +02:00
#22 Basic Pie Chart
This commit is contained in:
16
e2e/spec/pie.spec.js
Normal file
16
e2e/spec/pie.spec.js
Normal file
@@ -0,0 +1,16 @@
|
||||
/* eslint-env jest */
|
||||
import { imgSnapshotTest } from '../helpers/util.js'
|
||||
const { toMatchImageSnapshot } = require('jest-image-snapshot')
|
||||
|
||||
expect.extend({ toMatchImageSnapshot })
|
||||
|
||||
describe('Pie Chart simple', () => {
|
||||
it('should render a simple Pie chart diagram', async () => {
|
||||
await imgSnapshotTest(page, `
|
||||
pie
|
||||
"Ash" : 40
|
||||
"Bat" : 50
|
||||
`,
|
||||
{})
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user