(actual: Plottable.Point, expected: Plottable.Point, epsilon: number, message: String)
| 93 | } |
| 94 | |
| 95 | export function assertPointsClose(actual: Plottable.Point, expected: Plottable.Point, epsilon: number, message: String) { |
| 96 | assert.closeTo(actual.x, expected.x, epsilon, message + " (x)"); |
| 97 | assert.closeTo(actual.y, expected.y, epsilon, message + " (y)"); |
| 98 | } |
| 99 | |
| 100 | export function assertWidthHeight(el: SimpleSelection<void>, widthExpected: number, heightExpected: number, message: string) { |
| 101 | const width = el.attr("width"); |
no outgoing calls
no test coverage detected