function rangeCheck(name, members) {
            var ranges = wb2.definedNames.getRanges(name);
            expect(ranges.name).to.equal(name);
            if (members.length) {
              expect(ranges.ranges).to.have.members(members);
            } else {
              expect(ranges.ranges.length).to.equal(0);
            }
          }
function rangeCheck(name, members) {
            var ranges = wb2.definedNames.getRanges(name);
            expect(ranges.name).to.equal(name);
            if (members.length) {
              expect(ranges.ranges).to.have.members(members);
            } else {
              expect(ranges.ranges.length).to.equal(0);
            }
          }
function rangeCheck ( name , members ) { var ranges = wb2 . definedNames . getRanges ( name ) ; expect ( ranges . name ) . to . equal ( name ) ; if ( members . length ) { expect ( ranges . ranges ) . to . have . members ( members ) ; } else { expect ( ranges . ranges . length ) . to . equal ( 0 ) ; } }
ranges
ranges
Check if the name is a valid range