fix: typo for source

This commit is contained in:
yutotnh
2022-06-27 12:34:28 +09:00
parent 5619b54cdb
commit 4d4b77f39f
11 changed files with 28 additions and 28 deletions

View File

@@ -58,7 +58,7 @@ describe('[Comments] when parsing', () => {
});
it('should handle comments at the end no trailing newline', function () {
const res = flow.parser.parse('graph TD;\n A-->B\n%% Commento');
const res = flow.parser.parse('graph TD;\n A-->B\n%% Comment');
const vert = flow.parser.yy.getVertices();
const edges = flow.parser.yy.getEdges();
@@ -73,7 +73,7 @@ describe('[Comments] when parsing', () => {
});
it('should handle comments at the end many trailing newlines', function () {
const res = flow.parser.parse('graph TD;\n A-->B\n%% Commento\n\n\n');
const res = flow.parser.parse('graph TD;\n A-->B\n%% Comment\n\n\n');
const vert = flow.parser.yy.getVertices();
const edges = flow.parser.yy.getEdges();

View File

@@ -12,7 +12,7 @@ describe('parsing a flow chart', function () {
flow.parser.yy.clear();
});
it('should handle a trailing whitespaces after statememnts', function () {
it('should handle a trailing whitespaces after statements', function () {
const res = flow.parser.parse('graph TD;\n\n\n %% Comment\n A-->B; \n B-->C;');
const vert = flow.parser.yy.getVertices();