From 7508cd796d8e6b50e64503d429031e0601c9659e Mon Sep 17 00:00:00 2001 From: "Ashley Engelund (weedySeaDragon @ github)" Date: Sun, 27 Nov 2022 10:13:32 -0800 Subject: [PATCH] (minor) fix comment, comment typo --- packages/mermaid/src/tests/MockedD3.ts | 2 +- packages/mermaid/src/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mermaid/src/tests/MockedD3.ts b/packages/mermaid/src/tests/MockedD3.ts index 24cb9043f..56787448a 100644 --- a/packages/mermaid/src/tests/MockedD3.ts +++ b/packages/mermaid/src/tests/MockedD3.ts @@ -99,7 +99,7 @@ export class MockedD3 { return this; } - // NOTE: Returns a HTML ELement with tag 'svg' that has _another_ 'svg' element child. + // NOTE: Returns a HTML Element with tag 'svg' that has _another_ 'svg' element child. // This allows different tests to succeed -- some need a top level 'svg' and some need a 'svg' element to be the firstChild // Real implementation returns an HTML Element public node = vi.fn().mockImplementation(() => { diff --git a/packages/mermaid/src/utils.ts b/packages/mermaid/src/utils.ts index 3689a01a1..19ed228f9 100644 --- a/packages/mermaid/src/utils.ts +++ b/packages/mermaid/src/utils.ts @@ -915,7 +915,7 @@ export function getErrorMessage(error: unknown): string { } /** - * Appends element with the given title, centered. + * Appends element with the given title and css class. * * @param parent - d3 svg object to append title to * @param cssClass - CSS class for the element containing the title