@datarailsshared/dr_renderer 1.5.116 → 1.5.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,6 @@ import addInTables from './mock/add-in-tables.json';
6
6
  import addInFunctions from './mock/add-in-functions.json';
7
7
  import addInDynamicRanges from './mock/add-in-dynamic-ranges.json';
8
8
  import widgets from './mock/widgets.json';
9
- import initPivotTable from "../src/pivottable";
10
9
  import initDRPivotTable from "../src/dr_pivottable";
11
10
  import valueFormatter from "../src/value.formatter";
12
11
  import { DrGaugeChart, GAUGE_OPTIONS_DEFAULT } from "../src/charts/dr_gauge_chart";
@@ -90,7 +89,6 @@ describe('highcharts_renderer', () => {
90
89
  chart: () => {},
91
90
  };
92
91
  _window.DataFormatter = DataFormatter;
93
- initPivotTable($, _window, _document);
94
92
  initDRPivotTable($, _window, _document);
95
93
 
96
94
  highchartsRenderer = getHighchartsRenderer($, _document, Highcharts, lodash.cloneDeep(DEFAULT_USER_COLORS), highchartsRenderer,
@@ -1043,12 +1043,12 @@ describe('Options Builder Module', () => {
1043
1043
  expectValidSuboptionDefinition(result);
1044
1044
  });
1045
1045
 
1046
- it('should have transpose enabled by default', () => {
1046
+ it('should have transpose disabled by default', () => {
1047
1047
  const result = withTableOptionsTranspose();
1048
1048
  const transpose = result.elements.find(e => e.value_name === 'transpose_table');
1049
1049
 
1050
1050
  expect(transpose).toBeDefined();
1051
- expect(transpose.default_value).toBe(true);
1051
+ expect(transpose.default_value).toBe(false);
1052
1052
  });
1053
1053
  });
1054
1054
 
@@ -1,7 +1,6 @@
1
1
  import * as JQuery from "jquery";
2
2
  import * as lodash from 'lodash';
3
3
  import moment from 'moment/min/moment.min';
4
- import initPivotTable from "../src/pivottable";
5
4
  import initDRPivotTable from "../src/dr_pivottable";
6
5
 
7
6
  const getHighchartsRenderer = require('../src/highcharts_renderer');
@@ -69,7 +68,6 @@ describe('ptCreateDrillDownSeriesToDrilldownChart', () => {
69
68
  DataFormatter: DataFormatter
70
69
  };
71
70
 
72
- initPivotTable(JQuery, _window, _document);
73
71
  initDRPivotTable(JQuery, _window, _document);
74
72
 
75
73
  const DEFAULT_USER_COLORS = ['#7cb5ec', '#434348', '#90ed7d', '#f7a35c', '#8085e9', '#f15c80', '#e4d354', '#2b908f', '#f45b5b', '#91e8e1'];
@@ -116,7 +116,7 @@ describe('highchartsRenderer.suboptions', () => {
116
116
  test('all suboptions have required properties', () => {
117
117
  Object.entries(highchartsRenderer.suboptions).forEach(([key, suboption]) => {
118
118
  // category_class is required
119
- expect(suboption.category_class || suboption.categorys_class).toBeDefined();
119
+ expect(suboption.category_class).toBeDefined();
120
120
 
121
121
  // category_type is required
122
122
  expect(suboption.category_type).toBeDefined();