( sectionManager, sizeAndPosition, expectedSizeAndPositionInfos, )
| 13 | } |
| 14 | |
| 15 | function verifySections( |
| 16 | sectionManager, |
| 17 | sizeAndPosition, |
| 18 | expectedSizeAndPositionInfos, |
| 19 | ) { |
| 20 | const sections = sectionManager.getSections(sizeAndPosition); |
| 21 | expect(sections.length).toEqual(expectedSizeAndPositionInfos.length); |
| 22 | expectedSizeAndPositionInfos.forEach(sizeAndPosition => { |
| 23 | const match = sections.find( |
| 24 | section => |
| 25 | section.x === sizeAndPosition.x && section.y === sizeAndPosition.y, |
| 26 | ); |
| 27 | expect(!!match).toEqual(true); |
| 28 | }); |
| 29 | } |
| 30 | |
| 31 | describe('SectionManager', () => { |
| 32 | it('creates the appropriate number of Sections', () => { |
no test coverage detected
searching dependent graphs…