mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-09 00:59:37 +02:00
make test title clearer
This commit is contained in:

parent
e9d4372c41
commit
6044e9e9e8
@@ -386,7 +386,7 @@ describe('when inserting titles', function () {
|
|||||||
expect(title_attr_spy).toHaveBeenCalledWith('x', 10 + 100 / 2);
|
expect(title_attr_spy).toHaveBeenCalledWith('x', 10 + 100 / 2);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('y value is - given title top margin', () => {
|
it('y value is the negative of given title top margin', () => {
|
||||||
vi.spyOn(svg, 'append').mockReturnValue(fauxTitle);
|
vi.spyOn(svg, 'append').mockReturnValue(fauxTitle);
|
||||||
const title_attr_spy = vi.spyOn(fauxTitle, 'attr');
|
const title_attr_spy = vi.spyOn(fauxTitle, 'attr');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user