@param {Array. } categories
(categories)
| 81 | // Check location of categories |
| 82 | /** @param {Array.<CategoryViewModel>} categories */ |
| 83 | function checkCategoryPositions(categories) { |
| 84 | var nextY = (3 - categories.length) * catSpacing / 2; |
| 85 | for(var c = 0; c < categories.length; c++) { |
| 86 | expect(categories[c].y).toEqual(nextY); |
| 87 | nextY += categories[c].height + catSpacing; |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | checkCategoryPositions(parcatsViewModel.dimensions[0].categories); |
| 92 | checkCategoryPositions(parcatsViewModel.dimensions[1].categories); |
no outgoing calls
no test coverage detected
searching dependent graphs…