mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-30 07:28:12 +08:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user