Skip to content

Commit

Permalink
refactor: 修改了导致ci 异常的问题 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca authored Aug 11, 2021
1 parent 79b174c commit 1dca740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/unit/ui/breadcrumb/index-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('breadcrumb', () => {
expect(containerShapes[0].attr().width).toBeCloseTo(
lastItemRect.right - headItemRect.left + padding[1] + padding[3]
);
expect(containerShapes[0].attr().height).toBeCloseTo(textStyle.default!.lineHeight + padding[2] + padding[0]);
expect(containerShapes[0].attr().height).toBeCloseTo(textStyle!.default!.lineHeight! + padding[2] + padding[0]);

canvas.appendChild(breadcrumb);
});
Expand Down
1 change: 1 addition & 0 deletions src/util/svg2marker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function path2marker(
viewBoxHeight: number = 1014
): (x: number, y: number, r: number) => (string | number)[][] {
return (x: number, y: number, r: number): (string | number)[][] => {
// @ts-ignore
const paths: ISVGPathCmd[] = svgPathParser(svgPath);

return paths.map((path: ISVGPathCmd) => {
Expand Down

0 comments on commit 1dca740

Please sign in to comment.