mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
fixed typo
This commit is contained in:
@@ -16,7 +16,7 @@ describe('quadrant unit tests', () => {
|
|||||||
it('should throw an error for unacceptable style name', () => {
|
it('should throw an error for unacceptable style name', () => {
|
||||||
const styles: string[] = ['test_name: value'];
|
const styles: string[] = ['test_name: value'];
|
||||||
expect(() => quadrantDb.parseStyles(styles)).toThrowError(
|
expect(() => quadrantDb.parseStyles(styles)).toThrowError(
|
||||||
'stlye named test_name is unacceptable'
|
'style named test_name is unacceptable'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -85,7 +85,7 @@ function parseStyles(styles: string[]): StylesObject {
|
|||||||
}
|
}
|
||||||
stylesObject.strokeWidth = value;
|
stylesObject.strokeWidth = value;
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`stlye named ${key} is unacceptable`);
|
throw new Error(`style named ${key} is unacceptable`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return stylesObject;
|
return stylesObject;
|
||||||
|
Reference in New Issue
Block a user