Fix jest test suites (#268)

* CRLF to LF

* add babel-jest

* use ES6 style imports

* fix bugs manifest by test suite

* add babel test config
This commit is contained in:
Bruce Martin
2018-09-27 17:52:17 -07:00
committed by GitHub
parent 2d218fa099
commit f0d9d873be
5 changed files with 807 additions and 788 deletions
+6 -2
View File
@@ -401,7 +401,11 @@ class ScalarGroup {
this.dimension = dimension;
// generate group names from dimension values
this.mapValue = this._map(groupValue, groupValueType, dimension);
this.mapValue = this.constructor._map(
groupValue,
groupValueType,
dimension
);
// group index is mapping from data record index to group index
this.groupIndex = new Uint32Array(dimension.crossfilter.data.length);
@@ -469,7 +473,7 @@ class ScalarGroup {
// Each item in the range will be remved from `dim`. reduceRemove if it
// is currently selected.
const { data, selection } = this.dimension.crossfilter.selection;
const { data, selection } = this.dimension.crossfilter;
intv.forEach(rng => {
for (let r = rng[0]; r < rng[1]; r += 1) {
const i = dim.index[r];