(a, b)
| 562 | // array b has all the properties of the corresponding object in array a |
| 563 | // used for getMembers and prune tests. |
| 564 | function compareObjectArrays(a, b) { |
| 565 | expect(a.length).toEqual(b.length); |
| 566 | |
| 567 | for (let i = 0, l = a.length; i < l; i++) { |
| 568 | for (const prop in a[i]) { |
| 569 | if ( hasOwnProp.call(a[i], prop) ) { |
| 570 | expect(b[i][prop]).toBeDefined(); |
| 571 | expect(a[i][prop]).toEqual(b[i][prop]); |
| 572 | } |
| 573 | } |
| 574 | } |
| 575 | } |
| 576 | describe("getMembers", () => { |
| 577 | // instead parse a file from fixtures and verify it? |
| 578 | const classes = [ |
no test coverage detected
searching dependent graphs…