use singlestat base where appropriate

This commit is contained in:
ryan
2019-03-15 08:38:29 -07:00
parent 77b78e36e5
commit b1b5e8d74c
4 changed files with 10 additions and 10 deletions

View File

@@ -1,8 +1,8 @@
import { getDisplayProcessor, getColorFromThreshold, DisplayProcessor, DisplayValue } from './displayValue';
import { MappingType, ValueMapping } from '../types/panel';
function assertSame(input: any, processorss: DisplayProcessor[], match: DisplayValue) {
processorss.forEach(processor => {
function assertSame(input: any, processors: DisplayProcessor[], match: DisplayValue) {
processors.forEach(processor => {
const value = processor(input);
expect(value.text).toEqual(match.text);
if (match.hasOwnProperty('numeric')) {