mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-04 08:06:43 +02:00
resolve lint issues for no-inferrable-types
This commit is contained in:
@@ -28,7 +28,7 @@ export const mermaidUrl = (
|
|||||||
mermaid: options,
|
mermaid: options,
|
||||||
};
|
};
|
||||||
const objStr: string = JSON.stringify(codeObject);
|
const objStr: string = JSON.stringify(codeObject);
|
||||||
let url: string = `http://localhost:9000/e2e.html?graph=${utf8ToB64(objStr)}`;
|
let url = `http://localhost:9000/e2e.html?graph=${utf8ToB64(objStr)}`;
|
||||||
if (api) {
|
if (api) {
|
||||||
url = `http://localhost:9000/xss.html?graph=${graphStr}`;
|
url = `http://localhost:9000/xss.html?graph=${graphStr}`;
|
||||||
}
|
}
|
||||||
@@ -43,7 +43,7 @@ export const mermaidUrl = (
|
|||||||
export const imgSnapshotTest = (
|
export const imgSnapshotTest = (
|
||||||
graphStr: string,
|
graphStr: string,
|
||||||
_options: CypressMermaidConfig = {},
|
_options: CypressMermaidConfig = {},
|
||||||
api: boolean = false,
|
api = false,
|
||||||
validation?: any
|
validation?: any
|
||||||
): void => {
|
): void => {
|
||||||
cy.log(JSON.stringify(_options));
|
cy.log(JSON.stringify(_options));
|
||||||
@@ -77,7 +77,7 @@ export const imgSnapshotTest = (
|
|||||||
export const urlSnapshotTest = (
|
export const urlSnapshotTest = (
|
||||||
url: string,
|
url: string,
|
||||||
_options: CypressMermaidConfig,
|
_options: CypressMermaidConfig,
|
||||||
_api: boolean = false,
|
_api = false,
|
||||||
validation?: any
|
validation?: any
|
||||||
): void => {
|
): void => {
|
||||||
const options: CypressMermaidConfig = Object.assign(_options);
|
const options: CypressMermaidConfig = Object.assign(_options);
|
||||||
@@ -87,7 +87,7 @@ export const urlSnapshotTest = (
|
|||||||
export const renderGraph = (
|
export const renderGraph = (
|
||||||
graphStr: string,
|
graphStr: string,
|
||||||
options: CypressMermaidConfig = {},
|
options: CypressMermaidConfig = {},
|
||||||
api: boolean = false
|
api = false
|
||||||
): void => {
|
): void => {
|
||||||
const url: string = mermaidUrl(graphStr, options, api);
|
const url: string = mermaidUrl(graphStr, options, api);
|
||||||
openURLAndVerifyRendering(url, options);
|
openURLAndVerifyRendering(url, options);
|
||||||
|
Reference in New Issue
Block a user