it('should return an empty array when target branch is not enumerable', () => { expect(getDeepJsonChildren(json, 'testString')).to.deep.equal([]); expect(getDeepJsonChildren(json, 'testShallow')).to.deep.equal([]); });
it('should return an indices when target branch is an array', () => { expect(getDeepJsonChildren(json, 'testDeep.testDeeper')).to.deep.equal([ '0' ]); });
it('should return an empty array when branch is not found', () => { expect(getDeepJsonChildren(json, 'testWrongBranch')).to.deep.equal([]); });
it('should return json branch keys', () => { expect(getDeepJsonChildren(json, 'testDeep')).to.deep.equal([ 'testDeeper' ]); });
it('should return root json keys when not given any path', () => { expect(getDeepJsonChildren(json)).to.deep.equal([ 'testShallow', 'testString', 'testDeep' ]); });
it('should return an empty array of children if given no arguments', () => { expect(getDeepJsonChildren()).to.deep.equal([]); });