forked from mermaid-js/mermaid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ad537b
commit f62c5d9
Showing
12 changed files
with
205 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Mocked C4Context diagram renderer | ||
*/ | ||
|
||
import { vi } from 'vitest'; | ||
|
||
export const drawPersonOrSystemArray = vi.fn(); | ||
export const drawBoundary = vi.fn(); | ||
|
||
export const setConf = vi.fn(); | ||
|
||
export const draw = vi.fn().mockImplementation(() => { | ||
return ''; | ||
}); | ||
|
||
export default { | ||
drawPersonOrSystemArray, | ||
drawBoundary, | ||
setConf, | ||
draw, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Mocked class diagram v2 renderer | ||
*/ | ||
|
||
import { vi } from 'vitest'; | ||
|
||
export const setConf = vi.fn(); | ||
|
||
export const draw = vi.fn().mockImplementation(() => { | ||
return ''; | ||
}); | ||
|
||
export default { | ||
setConf, | ||
draw, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Mocked class diagram renderer | ||
*/ | ||
|
||
import { vi } from 'vitest'; | ||
|
||
export const draw = vi.fn().mockImplementation(() => { | ||
return ''; | ||
}); | ||
|
||
export default { | ||
draw, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Mocked er diagram renderer | ||
*/ | ||
|
||
import { vi } from 'vitest'; | ||
|
||
export const setConf = vi.fn(); | ||
|
||
export const draw = vi.fn().mockImplementation(() => { | ||
return ''; | ||
}); | ||
|
||
export default { | ||
setConf, | ||
draw, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Mocked flow (flowchart) diagram v2 renderer | ||
*/ | ||
|
||
import { vi } from 'vitest'; | ||
|
||
export const setConf = vi.fn(); | ||
export const addVertices = vi.fn(); | ||
export const addEdges = vi.fn(); | ||
export const getClasses = vi.fn().mockImplementation(() => { | ||
return {}; | ||
}); | ||
|
||
export const draw = vi.fn().mockImplementation(() => { | ||
return ''; | ||
}); | ||
|
||
export default { | ||
setConf, | ||
addVertices, | ||
addEdges, | ||
getClasses, | ||
draw, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Mocked gantt diagram renderer | ||
*/ | ||
|
||
import { vi } from 'vitest'; | ||
|
||
export const setConf = vi.fn(); | ||
|
||
export const draw = vi.fn().mockImplementation(() => { | ||
return ''; | ||
}); | ||
|
||
export default { | ||
setConf, | ||
draw, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Mocked git (graph) diagram renderer | ||
*/ | ||
|
||
import { vi } from 'vitest'; | ||
|
||
export const draw = vi.fn().mockImplementation(() => { | ||
return ''; | ||
}); | ||
|
||
export default { | ||
draw, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* Mocked pie (picChart) diagram renderer | ||
*/ | ||
|
||
import { vi } from 'vitest'; | ||
export const setConf = vi.fn(); | ||
|
||
export const draw = vi.fn().mockImplementation(() => { | ||
return ''; | ||
}); | ||
|
||
export default { | ||
setConf, | ||
draw, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Mocked pie (picChart) diagram renderer | ||
*/ | ||
|
||
import { vi } from 'vitest'; | ||
|
||
export const draw = vi.fn().mockImplementation(() => { | ||
return ''; | ||
}); | ||
|
||
export default { | ||
draw, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Mocked requirement diagram renderer | ||
*/ | ||
|
||
import { vi } from 'vitest'; | ||
|
||
export const draw = vi.fn().mockImplementation(() => { | ||
return ''; | ||
}); | ||
|
||
export default { | ||
draw, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* Mocked sequence diagram renderer | ||
*/ | ||
|
||
import { vi } from 'vitest'; | ||
|
||
export const bounds = vi.fn(); | ||
export const drawActors = vi.fn(); | ||
export const drawActorsPopup = vi.fn(); | ||
|
||
export const setConf = vi.fn(); | ||
|
||
export const draw = vi.fn().mockImplementation(() => { | ||
return ''; | ||
}); | ||
|
||
export default { | ||
bounds, | ||
drawActors, | ||
drawActorsPopup, | ||
setConf, | ||
draw, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* Mocked state diagram v2 renderer | ||
*/ | ||
|
||
import { vi } from 'vitest'; | ||
|
||
export const setConf = vi.fn(); | ||
export const getClasses = vi.fn().mockImplementation(() => { | ||
return {}; | ||
}); | ||
export const stateDomId = vi.fn().mockImplementation(() => { | ||
return 'mocked-stateDiagram-stateDomId'; | ||
}); | ||
export const draw = vi.fn().mockImplementation(() => { | ||
return ''; | ||
}); | ||
|
||
export default { | ||
setConf, | ||
getClasses, | ||
draw, | ||
}; |