Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyes-ced committed Mar 6, 2024
1 parent 1059dd3 commit 358d855
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('quadrant unit tests', () => {
it('should throw an error for unacceptable style name', () => {
const styles: string[] = ['test_name: value'];
expect(() => quadrantDb.parseStyles(styles)).toThrowError(
'stlye named test_name is unacceptable'
'style named test_name is unacceptable'
);
});

Expand Down
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/quadrant-chart/quadrantDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function parseStyles(styles: string[]): StylesObject {
}
stylesObject.strokeWidth = value;
} else {
throw new Error(`stlye named ${key} is unacceptable`);
throw new Error(`style named ${key} is unacceptable`);
}
}
return stylesObject;
Expand Down

0 comments on commit 358d855

Please sign in to comment.