File dataset.spec.js
has 529 lines of code (exceeds 250 allowed). Consider refactoring.
import q from '../dataset';
import picData from '../../../../../packages/picasso.js/src/core/data/dataset';
const NxSimpleValue = { qNum: 37.6, qText: '$37.6' };
const NxSimpleDimValue = { qElemNo: 7, qText: 'seven' };
Function ds
has 91 lines of code (exceeds 25 allowed). Consider refactoring.
const ds = (qMode, config = {}) => {
const qDataPages = [
{
qArea: {
qLeft: 0,
Function tree
has 47 lines of code (exceeds 25 allowed). Consider refactoring.
const tree = () => {
const qTreeDataPages = [
{
qNodes: [NxTreeNode],
},
Similar blocks of code found in 15 locations. Consider refactoring.
describe('attribute expression', () => {
let f;
beforeAll(() => {
f = d.field('qMeasureInfo/2/qAttrExprInfo/1');
});
Similar blocks of code found in 15 locations. Consider refactoring.
describe('dimension', () => {
let f;
beforeAll(() => {
f = d.field('qDimensionInfo/0');
});
Similar blocks of code found in 15 locations. Consider refactoring.
describe('dimension', () => {
let f;
beforeAll(() => {
f = d.field('qDimensionInfo/0');
});
Similar blocks of code found in 15 locations. Consider refactoring.
describe('attribute expression', () => {
let f;
beforeAll(() => {
f = d.field('qMeasureInfo/2/qAttrExprInfo/1');
});
Similar blocks of code found in 15 locations. Consider refactoring.
describe('attribute dimension', () => {
let f;
beforeAll(() => {
f = d.field('qMeasureInfo/2/qAttrDimInfo/1');
});
Similar blocks of code found in 15 locations. Consider refactoring.
describe('dimension', () => {
let f;
beforeAll(() => {
f = d.field('qDimensionInfo/0');
});
Similar blocks of code found in 15 locations. Consider refactoring.
describe('attribute expression', () => {
let f;
beforeAll(() => {
f = d.field('qMeasureInfo/2/qAttrExprInfo/1');
});
Similar blocks of code found in 15 locations. Consider refactoring.
describe('dimension', () => {
let f;
beforeAll(() => {
f = d.field('qDimensionInfo/0');
});
Similar blocks of code found in 15 locations. Consider refactoring.
describe('attribute dimension', () => {
let f;
beforeAll(() => {
f = d.field('qDimensionInfo/0/qMeasureInfo/2/qAttrDimInfo/1');
});
Similar blocks of code found in 15 locations. Consider refactoring.
describe('measure', () => {
let f;
beforeAll(() => {
f = d.field('qMeasureInfo/2');
});
Similar blocks of code found in 15 locations. Consider refactoring.
describe('measure', () => {
let f;
beforeAll(() => {
f = d.field('qDimensionInfo/0/qMeasureInfo/2');
});
Similar blocks of code found in 15 locations. Consider refactoring.
describe('measure', () => {
let f;
beforeAll(() => {
f = d.field('qMeasureInfo/2');
});
Similar blocks of code found in 15 locations. Consider refactoring.
describe('measure', () => {
let f;
beforeAll(() => {
f = d.field('qMeasureInfo/2');
});
Similar blocks of code found in 15 locations. Consider refactoring.
describe('attribute expression', () => {
let f;
beforeAll(() => {
f = d.field('qDimensionInfo/0/qMeasureInfo/2/qAttrExprInfo/1');
});
Similar blocks of code found in 15 locations. Consider refactoring.
describe('attribute dimension', () => {
let f;
beforeAll(() => {
f = d.field('qMeasureInfo/2/qAttrDimInfo/1');
});
Identical blocks of code found in 2 locations. Consider refactoring.
describe('hierarchy', () => {
it('should return tree', () => {
const t = d.hierarchy();
expect(t.children[0].data.label).to.equal('nine');
});
Identical blocks of code found in 2 locations. Consider refactoring.
describe('hierarchy', () => {
it('should return tree', () => {
const t = d.hierarchy();
expect(t.children[0].data.label).to.equal('nine');
});
Identical blocks of code found in 2 locations. Consider refactoring.
qMeasureInfo: [
{},
{},
{
qFallbackTitle: 'C',
plugins/q/src/data/__tests__/dataset.spec.js on lines 75..96 Identical blocks of code found in 2 locations. Consider refactoring.
qMeasureInfo: [
{},
{},
{
qFallbackTitle: 'C',
Similar blocks of code found in 2 locations. Consider refactoring.
it('should pass localeInfo to attribute field', () => {
let f = d.field('qMeasureInfo/2/qAttrExprInfo/1');
const form = f.formatter();
expect(form(300)).to.eql('€300_00');
});
Similar blocks of code found in 2 locations. Consider refactoring.
it('should pass localeInfo to field', () => {
let f = d.field('qMeasureInfo/2');
const form = f.formatter();
expect(form(300)).to.eql('$300_00');
});
Similar blocks of code found in 3 locations. Consider refactoring.
it('should find attribute expression on dimension', () => {
const f = d.field('qDimensionInfo/0/qAttrExprInfo/0');
expect(f.title()).to.eql('attr expr title');
});
Similar blocks of code found in 3 locations. Consider refactoring.
it('should find attribute expression on measure', () => {
const f = d.field('qMeasureInfo/2/qAttrExprInfo/1');
expect(f.title()).to.eql('m attr expr title');
});
Similar blocks of code found in 3 locations. Consider refactoring.
it('should find attribute dimension on measure', () => {
const f = d.field('qMeasureInfo/2/qAttrDimInfo/2');
expect(f.title()).to.eql('m attr dim title');
});
There are no issues that match your filters.