import { ObjectUtils, } from './object-utils.functions'; describe('pickRandomProperty', () => { // tslint:disable-next-line test('It returns a property name from an object', () => { expect( ObjectUtils.pickRandomProperty({ test: 123, }), ).toBe('test'); }); }); describe('randomValueFromArray', () => { // tslint:disable-next-line test('It returns a value from an array', () => { expect( ObjectUtils.randomValueFromArray([ 'test', ]), ).toBe('test'); }); });