(actual: number, expected: number, message: string)
| 233 | } |
| 234 | |
| 235 | export function assertAreClose(actual: number, expected: number, message: string): void { |
| 236 | const density = Utils.layout.getDisplayDensity(); |
| 237 | const delta = Math.floor(density) !== density ? 1.1 : DELTA; |
| 238 | |
| 239 | TKUnit.assertAreClose(actual, expected, delta, message); |
| 240 | } |
| 241 | |
| 242 | export function assertViewColor(testView: View, hexColor: string) { |
| 243 | TKUnit.assert(testView.style.color, 'Color property not applied correctly. Style value is not defined.'); |
nothing calls this directly
no outgoing calls
no test coverage detected