mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-03 23:56:44 +02:00
#3243 Adding disabled testcase for diagram with leading \n
This commit is contained in:
@@ -42,8 +42,8 @@ export const imgSnapshotTest = (graphStr, _options, api = false, validation) =>
|
|||||||
if (!options.fontSize) {
|
if (!options.fontSize) {
|
||||||
options.fontSize = '16px';
|
options.fontSize = '16px';
|
||||||
}
|
}
|
||||||
// const useAppli = Cypress.env('useAppli');
|
const useAppli = Cypress.env('useAppli');
|
||||||
const useAppli = false;
|
//const useAppli = false;
|
||||||
const branch = Cypress.env('codeBranch');
|
const branch = Cypress.env('codeBranch');
|
||||||
cy.log('Hello ' + useAppli ? 'Appli' : 'image-snapshot');
|
cy.log('Hello ' + useAppli ? 'Appli' : 'image-snapshot');
|
||||||
const name = (options.name || cy.state('runnable').fullTitle()).replace(/\s+/g, '-');
|
const name = (options.name || cy.state('runnable').fullTitle()).replace(/\s+/g, '-');
|
||||||
|
@@ -14,7 +14,16 @@ describe('class diagram, ', function () {
|
|||||||
|
|
||||||
parser.parse(str);
|
parser.parse(str);
|
||||||
});
|
});
|
||||||
|
xit('should handle a leading newline axa', function () {
|
||||||
|
const str = '\nclassDiagram\n' + 'class Car';
|
||||||
|
|
||||||
|
try {
|
||||||
|
parser.parse(str);
|
||||||
|
// Fail test if above expression doesn't throw anything.
|
||||||
|
} catch (e) {
|
||||||
|
expect(true).toBe(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
it('should handle relation definitions', function () {
|
it('should handle relation definitions', function () {
|
||||||
const str =
|
const str =
|
||||||
'classDiagram\n' +
|
'classDiagram\n' +
|
||||||
|
Reference in New Issue
Block a user