var assert = require('chai').assert; // we need to define our own deepEqual function that ignores properties that are not hasOwnProperty. Not supported in chai.assert.deepEqual as of v3.0.0. function deepOwnEqual(a, b) { // if arrays of objects, recurse down to the objects if(Array.isArray(a) && Array.isArray(b)) { assert.deepEqual(a.length, b.length, 'Arrays have different lengths') for(var i=0; i