Skip to content

Commit

Permalink
Fixing broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Feb 8, 2023
1 parent ce037a8 commit 5809030
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 151 deletions.
15 changes: 6 additions & 9 deletions package.json
Expand Up @@ -4,7 +4,7 @@
"version": "9.3.0-rc1",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
"type": "module",
"packageManager": "pnpm@7.25.1",
"packageManager": "pnpm@7.25.0",
"keywords": [
"diagram",
"markdown",
Expand All @@ -23,7 +23,7 @@
"build": "pnpm run -r clean && concurrently \"pnpm build:vite\" \"pnpm build:types\"",
"dev": "concurrently \"pnpm build:vite --watch\" \"ts-node-esm .vite/server.ts\"",
"release": "pnpm build",
"lint": "eslint --cache --cache-strategy content --ignore-path .gitignore . && pnpm lint:jison && prettier --cache --check .",
"lint": "eslint --cache --ignore-path .gitignore . && pnpm lint:jison && prettier --check .",
"lint:fix": "eslint --fix --ignore-path .gitignore . && prettier --write . && ts-node-esm scripts/fixCSpell.ts",
"lint:jison": "ts-node-esm ./scripts/jison/lint.mts",
"cypress": "cypress run",
Expand Down Expand Up @@ -67,17 +67,17 @@
"@types/node": "^18.11.9",
"@types/prettier": "^2.7.1",
"@types/rollup-plugin-visualizer": "^4.2.1",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"@vitest/coverage-c8": "^0.27.0",
"@vitest/ui": "^0.27.0",
"concurrently": "^7.5.0",
"coveralls": "^3.1.1",
"cypress": "^10.11.0",
"cypress-image-snapshot": "^4.0.1",
"esbuild": "^0.17.0",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-jest": "^27.1.5",
Expand Down Expand Up @@ -110,8 +110,5 @@
},
"volta": {
"node": "18.13.0"
},
"dependencies": {
"remark-frontmatter": "^4.0.1"
}
}
20 changes: 10 additions & 10 deletions packages/mermaid/src/diagrams/timeline/timeline.spec.js
@@ -1,6 +1,6 @@
import { parser as timeline } from './parser/timeline';
import * as timelineDB from './timelineDb';
import { injectUtils } from './mermaidUtils';
// import { injectUtils } from './mermaidUtils';
import * as _commonDb from '../../commonDb';
import { parseDirective as _parseDirective } from '../../directiveUtils';

Expand All @@ -12,15 +12,15 @@ import {
setupGraphViewBox,
} from '../../diagram-api/diagramAPI';

injectUtils(
log,
setLogLevel,
getConfig,
sanitizeText,
setupGraphViewBox,
_commonDb,
_parseDirective
);
// injectUtils(
// log,
// setLogLevel,
// getConfig,
// sanitizeText,
// setupGraphViewBox,
// _commonDb,
// _parseDirective
// );

describe('when parsing a timeline ', function () {
beforeEach(function () {
Expand Down

0 comments on commit 5809030

Please sign in to comment.