UNPKG

virool-pivot

Version:

A web-based exploratory visualization UI for Druid.io

42 lines (39 loc) 1.02 kB
import { expect } from 'chai'; import { testImmutableClass } from 'immutable-class/build/tester'; import { $, Expression } from 'plywood'; import { SplitCombine, SplitCombineJS } from './split-combine'; describe('SplitCombine', () => { it('is an immutable class', () => { testImmutableClass<SplitCombineJS>(SplitCombine, [ { expression: { op: 'ref', name: 'language' } }, { expression: { op: 'ref', name: 'lookup' } }, { expression: { op: 'ref', name: 'time' }, bucketAction: { action: 'in', expression: { 'op': 'literal', 'value': { 'setType': 'STRING', 'elements': ['he'] }, 'type': 'SET' } }, sortAction: { action: 'sort', direction: 'ascending', expression: { op: 'ref', name: 'time' } }, limitAction: { action: 'limit', limit: 2 } } ]); }); });