mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-02 15:16:49 +02:00
fix: Update diagram keyword
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
import { imgSnapshotTest, renderGraph } from '../../helpers/util.ts';
|
import { imgSnapshotTest } from '../../helpers/util.ts';
|
||||||
|
|
||||||
describe('architecture diagram', () => {
|
describe('architecture diagram', () => {
|
||||||
it('should render a simple architecture diagram with groups', () => {
|
it('should render a simple architecture diagram with groups', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`architecture
|
`architecture-beta
|
||||||
group api(cloud)[API]
|
group api(cloud)[API]
|
||||||
|
|
||||||
service db(database)[Database] in api
|
service db(database)[Database] in api
|
||||||
@@ -21,7 +21,7 @@ describe('architecture diagram', () => {
|
|||||||
});
|
});
|
||||||
it('should render an architecture diagram with groups within groups', () => {
|
it('should render an architecture diagram with groups within groups', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`architecture
|
`architecture-beta
|
||||||
group api[API]
|
group api[API]
|
||||||
group public[Public API] in api
|
group public[Public API] in api
|
||||||
group private[Private API] in api
|
group private[Private API] in api
|
||||||
@@ -41,14 +41,14 @@ describe('architecture diagram', () => {
|
|||||||
});
|
});
|
||||||
it('should render an architecture diagram with the fallback icon', () => {
|
it('should render an architecture diagram with the fallback icon', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`architecture
|
`architecture-beta
|
||||||
service unknown(iconnamedoesntexist)[Unknown Icon]
|
service unknown(iconnamedoesntexist)[Unknown Icon]
|
||||||
`
|
`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
it('should render an architecture diagram with split directioning', () => {
|
it('should render an architecture diagram with split directioning', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`architecture
|
`architecture-beta
|
||||||
service db(database)[Database]
|
service db(database)[Database]
|
||||||
service s3(disk)[Storage]
|
service s3(disk)[Storage]
|
||||||
service serv1(server)[Server 1]
|
service serv1(server)[Server 1]
|
||||||
@@ -64,7 +64,7 @@ describe('architecture diagram', () => {
|
|||||||
});
|
});
|
||||||
it('should render an architecture diagram with directional arrows', () => {
|
it('should render an architecture diagram with directional arrows', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`architecture
|
`architecture-beta
|
||||||
service servC(server)[Server 1]
|
service servC(server)[Server 1]
|
||||||
service servL(server)[Server 2]
|
service servL(server)[Server 2]
|
||||||
service servR(server)[Server 3]
|
service servR(server)[Server 3]
|
||||||
@@ -85,7 +85,7 @@ describe('architecture diagram', () => {
|
|||||||
});
|
});
|
||||||
it('should render an architecture diagram with group edges', () => {
|
it('should render an architecture diagram with group edges', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`architecture
|
`architecture-beta
|
||||||
group left_group(cloud)[Left]
|
group left_group(cloud)[Left]
|
||||||
group right_group(cloud)[Right]
|
group right_group(cloud)[Right]
|
||||||
group top_group(cloud)[Top]
|
group top_group(cloud)[Top]
|
||||||
@@ -107,7 +107,7 @@ describe('architecture diagram', () => {
|
|||||||
});
|
});
|
||||||
it('should render an architecture diagram with edge labels', () => {
|
it('should render an architecture diagram with edge labels', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`architecture
|
`architecture-beta
|
||||||
service servC(server)[Server 1]
|
service servC(server)[Server 1]
|
||||||
service servL(server)[Server 2]
|
service servL(server)[Server 2]
|
||||||
service servR(server)[Server 3]
|
service servR(server)[Server 3]
|
||||||
@@ -128,7 +128,7 @@ describe('architecture diagram', () => {
|
|||||||
});
|
});
|
||||||
it('should render an architecture diagram with simple junction edges', () => {
|
it('should render an architecture diagram with simple junction edges', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`architecture
|
`architecture-beta
|
||||||
service left_disk(disk)[Disk]
|
service left_disk(disk)[Disk]
|
||||||
service top_disk(disk)[Disk]
|
service top_disk(disk)[Disk]
|
||||||
service bottom_disk(disk)[Disk]
|
service bottom_disk(disk)[Disk]
|
||||||
@@ -148,7 +148,7 @@ describe('architecture diagram', () => {
|
|||||||
});
|
});
|
||||||
it('should render an architecture diagram with complex junction edges', () => {
|
it('should render an architecture diagram with complex junction edges', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`architecture
|
`architecture-beta
|
||||||
group left
|
group left
|
||||||
group right
|
group right
|
||||||
service left_disk(disk)[Disk] in left
|
service left_disk(disk)[Disk] in left
|
||||||
|
Reference in New Issue
Block a user