Merge pull request #1536 from mermaid-js/bug/1448_mock_clock_in_render_tests

Mocking of clock in gantt tests
This commit is contained in:
Knut Sveidqvist
2020-07-12 11:24:14 +02:00
committed by GitHub

View File

@@ -2,6 +2,9 @@
import { imgSnapshotTest } from '../../helpers/util.js';
describe('Gantt diagram', () => {
beforeEach(()=>{
cy.clock((new Date('1010-10-10')).getTime())
})
it('should render a gantt chart', () => {
imgSnapshotTest(
`