Skip to content

Commit 695ad68

Browse files
committed
Add filter + filter test
1 parent 5668830 commit 695ad68

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test/jasmine/tests/transform_multi_test.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,4 +868,25 @@ describe('supplyDefaults with groupby + filter', function() {
868868
expect(out[3].x).toEqual([]);
869869
expect(out[4].x).toEqual([]);
870870
});
871+
872+
it('fiter + filter', function() {
873+
var out = _transform([{
874+
x: [1, 2, 3, 4, 5, 6, 7],
875+
y: [4, 6, 5, 7, 8, 9, 10],
876+
transforms: [{
877+
type: 'filter',
878+
target: [1, 2, 3, 4, 5, 6, 7],
879+
operation: '<',
880+
value: 6.5
881+
}, {
882+
type: 'filter',
883+
target: [1, 2, 3, 4, 5, 6, 7],
884+
operation: '>',
885+
value: 1.5
886+
}]
887+
}]);
888+
889+
expect(out[0].x).toEqual([2, 3, 4, 5, 6]);
890+
expect(out[0].y).toEqual([6, 5, 7, 8, 9]);
891+
});
871892
});

0 commit comments

Comments
 (0)