Showing 11 of 11 total issues
Similar blocks of code found in 6 locations. Consider refactoring. Open
it('should identify when the field is a measure', () => { let f = mField(); expect(f.type()).to.equal('measure'); });
- Read upRead up
Similar blocks of code found in 6 locations. Consider refactoring. Open
it('should identify an attribute dimension as a dimension', () => { let f = attrDimField(); expect(f.type()).to.equal('dimension'); });
- Read upRead up
Similar blocks of code found in 6 locations. Consider refactoring. Open
it('should return title', () => { let f = mField(); expect(f.title()).to.equal('TITLE'); });
- Read upRead up
Similar blocks of code found in 6 locations. Consider refactoring. Open
it('should identify when the field is a dimension', () => { let f = dimField(); expect(f.type()).to.equal('dimension'); });
- Read upRead up
Similar blocks of code found in 6 locations. Consider refactoring. Open
it('should return id', () => { let f = dimField(); expect(f.id()).to.equal('unique'); });
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
it('should return max value', () => { let f = mField(); expect(f.max()).to.equal(2); });
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
it('should return min value', () => { let f = mField(); expect(f.min()).to.equal(1); });
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
function dimField(mode, fe) { let def = struct(mode, fe, 'dimension'); def.meta.qStateCounts = {}; return qField(def); }
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
it('should have a default reducer of "avg" for a measure', () => { let f = mField(); expect(f.reduce).to.eql('avg'); });
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
function attrDimField(mode, fe) { let def = struct(mode, fe, 'dimension'); def.meta.qSize = {}; return qField(def); }
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
it('should have a default reducer of "first" for a dimension', () => { let f = dimField(); expect(f.reduce).to.eql('first'); });
- Read upRead up