chore: Added unit tests around drawBackgroundRect and drawRect

This commit is contained in:
Alexander Sage
2019-07-23 19:15:54 -07:00
parent 1b001cf1e8
commit 8b05eeaa59
4 changed files with 77 additions and 77 deletions

View File

@@ -168,7 +168,6 @@ export const drawLoop = function (elem, bounds, labelText, conf) {
}
}
/**
* Draws a background rectangle
* @param color - The fill color for the background
@@ -181,8 +180,8 @@ export const drawBackgroundRect = function (elem, bounds) {
height: bounds.stopy - bounds.starty,
fill: bounds.fill,
class: 'rect'
});
rectElem.lower();
})
rectElem.lower()
}
/**
* Setup arrow head and define the marker. The result is appended to the svg.