* Move Lens frontend to Kibana platform * Fix line breaks * Fix jest tests * Fix remaining test * Remove old Lens plugin entry * Fix i18n prefix * Add config schema * Address review
16 lines
588 B
TypeScript
16 lines
588 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
import { fieldExists } from './pure_helpers';
|
|
|
|
describe('fieldExists', () => {
|
|
it('returns whether or not a field exists', () => {
|
|
expect(fieldExists({ a: { b: true } }, 'a', 'b')).toBeTruthy();
|
|
expect(fieldExists({ a: { b: true } }, 'a', 'c')).toBeFalsy();
|
|
expect(fieldExists({ a: { b: true } }, 'b', 'b')).toBeFalsy();
|
|
});
|
|
});
|