MCPcopy
hub / github.com/jsdoc/jsdoc / compareObjectArrays

Function compareObjectArrays

test/specs/jsdoc/util/templateHelper.js:564–575  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

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 = [

Callers 1

templateHelper.jsFile · 0.85

Calls 1

expectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…