(actual: UrlSegmentGroup, expected: UrlSegmentGroup, error: string)
| 2010 | } |
| 2011 | |
| 2012 | function compareSegments(actual: UrlSegmentGroup, expected: UrlSegmentGroup, error: string): void { |
| 2013 | expect(actual).toBeDefined(error); |
| 2014 | expect(equalSegments(actual.segments, expected.segments)).toEqual(true, error); |
| 2015 | |
| 2016 | expect(Object.keys(actual.children).length).toEqual(Object.keys(expected.children).length, error); |
| 2017 | |
| 2018 | Object.keys(expected.children).forEach((key) => { |
| 2019 | compareSegments(actual.children[key], expected.children[key], error); |
| 2020 | }); |
| 2021 | } |
| 2022 | |
| 2023 | class ComponentA {} |
| 2024 | class ComponentB {} |
no test coverage detected