mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-13 20:39:38 +02:00
spelling: cannot
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@@ -40,7 +40,7 @@ describe('when parsing ER diagram it...', function () {
|
|||||||
allowed.forEach((allowedChar) => {
|
allowed.forEach((allowedChar) => {
|
||||||
const singleOccurrence = `Blo${allowedChar}rf`;
|
const singleOccurrence = `Blo${allowedChar}rf`;
|
||||||
const repeatedOccurrence = `Blo${allowedChar}${allowedChar}rf`;
|
const repeatedOccurrence = `Blo${allowedChar}${allowedChar}rf`;
|
||||||
const cannontStartWith = `${allowedChar}Blorf`;
|
const cannotStartWith = `${allowedChar}Blorf`;
|
||||||
const endsWith = `Blorf${allowedChar}`;
|
const endsWith = `Blorf${allowedChar}`;
|
||||||
|
|
||||||
it(`${singleOccurrence} fails if not surrounded by quotes`, function () {
|
it(`${singleOccurrence} fails if not surrounded by quotes`, function () {
|
||||||
@@ -73,7 +73,7 @@ describe('when parsing ER diagram it...', function () {
|
|||||||
expect(entities.has(name)).toBe(true);
|
expect(entities.has(name)).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`"${cannontStartWith}" cannot start with the character`, function () {
|
it(`"${cannotStartWith}" cannot start with the character`, function () {
|
||||||
const name = repeatedOccurrence;
|
const name = repeatedOccurrence;
|
||||||
expect(() => {
|
expect(() => {
|
||||||
erDiagram.parser.parse(`erDiagram\n "${name}"\n`);
|
erDiagram.parser.parse(`erDiagram\n "${name}"\n`);
|
||||||
|
Reference in New Issue
Block a user