spelling: a

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2025-04-16 20:30:19 -04:00
parent 34bf5c8be1
commit cb7518a960
11 changed files with 14 additions and 14 deletions

View File

@@ -138,8 +138,8 @@ describe('State diagram', () => {
imgSnapshotTest( imgSnapshotTest(
` `
stateDiagram-v2 stateDiagram-v2
State1: This a a single line description State1: This a single line description
State2: This a a multi line description State2: This a multi line description
State2: here comes the multi part State2: here comes the multi part
[*] --> State1 [*] --> State1
State1 --> State2 State1 --> State2

View File

@@ -129,8 +129,8 @@ describe('State diagram', () => {
imgSnapshotTest( imgSnapshotTest(
` `
stateDiagram stateDiagram
State1: This a a single line description State1: This a single line description
State2: This a a multi line description State2: This a multi line description
State2: here comes the multi part State2: here comes the multi part
[*] --> State1 [*] --> State1
State1 --> State2 State1 --> State2

View File

@@ -24,7 +24,7 @@ describe('architecture diagrams', () => {
await expect(parser.parse(str)).resolves.not.toThrow(); await expect(parser.parse(str)).resolves.not.toThrow();
}); });
it('should handle an simple radar definition', async () => { it('should handle a simple radar definition', async () => {
const str = `architecture-beta const str = `architecture-beta
service db service db
`; `;

View File

@@ -3,7 +3,7 @@ import block from './block.jison';
import db from '../blockDB.js'; import db from '../blockDB.js';
describe('Block diagram', function () { describe('Block diagram', function () {
describe('when parsing an block diagram graph it should handle > ', function () { describe('when parsing a block diagram graph it should handle > ', function () {
beforeEach(function () { beforeEach(function () {
block.parser.yy = db; block.parser.yy = db;
block.parser.yy.clear(); block.parser.yy.clear();

View File

@@ -111,7 +111,7 @@ export const drawRels = (elem, rels, conf) => {
}; };
/** /**
* Draws an boundary in the diagram * Draws a boundary in the diagram
* *
* @param {any} elem - The diagram we'll draw to. * @param {any} elem - The diagram we'll draw to.
* @param {any} boundary - The boundary to draw. * @param {any} boundary - The boundary to draw.

View File

@@ -969,13 +969,13 @@ describe('when parsing ER diagram it...', function () {
expect(rels[0].roleA).toBe(''); expect(rels[0].roleA).toBe('');
}); });
it('should allow an non-empty quoted label', function () { it('should allow a non-empty quoted label', function () {
erDiagram.parser.parse('erDiagram\nCUSTOMER ||--|{ ORDER : "places"'); erDiagram.parser.parse('erDiagram\nCUSTOMER ||--|{ ORDER : "places"');
const rels = erDb.getRelationships(); const rels = erDb.getRelationships();
expect(rels[0].roleA).toBe('places'); expect(rels[0].roleA).toBe('places');
}); });
it('should allow an non-empty unquoted label', function () { it('should allow a non-empty unquoted label', function () {
erDiagram.parser.parse('erDiagram\nCUSTOMER ||--|{ ORDER : places'); erDiagram.parser.parse('erDiagram\nCUSTOMER ||--|{ ORDER : places');
const rels = erDb.getRelationships(); const rels = erDb.getRelationships();
expect(rels[0].roleA).toBe('places'); expect(rels[0].roleA).toBe('places');

View File

@@ -315,7 +315,7 @@ You have to call mermaid.initialize.`
log.info('addLink', _start, _end, id); log.info('addLink', _start, _end, id);
// for a group syntax like A e1@--> B & C, only the first edge should have an the userDefined id // for a group syntax like A e1@--> B & C, only the first edge should have a userDefined id
// the rest of the edges should have auto generated ids // the rest of the edges should have auto generated ids
for (const start of _start) { for (const start of _start) {
for (const end of _end) { for (const end of _end) {

View File

@@ -467,7 +467,7 @@ export const draw = function (text, id, version, diagObj) {
const securityLevel = getConfig().securityLevel; const securityLevel = getConfig().securityLevel;
// Wrap the tasks in an a tag for working links without javascript // Wrap the tasks in a tag for working links without javascript
if (securityLevel === 'sandbox') { if (securityLevel === 'sandbox') {
let sandboxElement; let sandboxElement;
sandboxElement = select('#i' + id); sandboxElement = select('#i' + id);

View File

@@ -232,7 +232,7 @@ interface NoteModel {
} }
/** /**
* Draws an note in the diagram with the attached line * Draws a note in the diagram with the attached line
* *
* @param elem - The diagram to draw to. * @param elem - The diagram to draw to.
* @param noteModel - Note model options. * @param noteModel - Note model options.

View File

@@ -136,7 +136,7 @@ export const drawDescrState = (g, stateDef) => {
/** Adds the creates a box around the existing content and adds a panel for the id on top of the content. */ /** Adds the creates a box around the existing content and adds a panel for the id on top of the content. */
/** /**
* Function that creates an title row and a frame around a substate for a composite state diagram. * Function that creates a title row and a frame around a substate for a composite state diagram.
* The function returns a new d3 svg object with updated width and height properties; * The function returns a new d3 svg object with updated width and height properties;
* *
* @param {any} g The d3 svg object for the substate to framed * @param {any} g The d3 svg object for the substate to framed

View File

@@ -51,7 +51,7 @@ export class MockedD3 {
}); });
// NOTE: The d3 implementation allows for a selector ('beforeSelector' arg below). // NOTE: The d3 implementation allows for a selector ('beforeSelector' arg below).
// With this mocked implementation, we assume it will always refer to an node id // With this mocked implementation, we assume it will always refer to a node id
// and will always be of the form "#[id of the node to insert before]". // and will always be of the form "#[id of the node to insert before]".
// To keep this simple, any leading '#' is removed and the resulting string is the node id searched. // To keep this simple, any leading '#' is removed and the resulting string is the node id searched.
insert = (type: string, beforeSelector?: string, id = this.id + '-inserted'): MockedD3 => { insert = (type: string, beforeSelector?: string, id = this.id + '-inserted'): MockedD3 => {