UNPKG

virool-pivot

Version:

A web-based exploratory visualization UI for Druid.io

48 lines (45 loc) 1.33 kB
import { expect } from 'chai'; import { testImmutableClass } from 'immutable-class/build/tester'; import { $, Expression } from 'plywood'; import { Highlight, HighlightJS } from './highlight'; describe('Highlight', () => { it('is an immutable class', () => { testImmutableClass<HighlightJS>(Highlight, [ { owner: 'Sunkist', delta: { "op": "chain", "expression": { "op": "ref", "name": "language" }, "actions": [ { "action": "overlap", "expression": { "op": "literal", "value": { "setType": "STRING", "elements": ["he"] }, "type": "SET" } }, { "action": "and", "expression": { "op": "chain", "expression": { "op": "ref", "name": "namespace" }, "action": { "action": "overlap", "expression": { "op": "literal", "value": { "setType": "STRING", "elements": ["wikipedia"] }, "type": "SET" } } } } ] } }, { owner: 'Dole', delta: { op: 'literal', value: true } } ]); }); });