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

@@ -24,7 +24,7 @@ describe('architecture diagrams', () => {
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
service db
`;

View File

@@ -3,7 +3,7 @@ import block from './block.jison';
import db from '../blockDB.js';
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 () {
block.parser.yy = db;
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} boundary - The boundary to draw.

View File

@@ -969,13 +969,13 @@ describe('when parsing ER diagram it...', function () {
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"');
const rels = erDb.getRelationships();
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');
const rels = erDb.getRelationships();
expect(rels[0].roleA).toBe('places');

View File

@@ -315,7 +315,7 @@ You have to call mermaid.initialize.`
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
for (const start of _start) {
for (const end of _end) {

View File

@@ -467,7 +467,7 @@ export const draw = function (text, id, version, diagObj) {
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') {
let sandboxElement;
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 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. */
/**
* 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;
*
* @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).
// 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]".
// 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 => {