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
commit b40014d709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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(
`