import { KeysPipe, } from './keys.pipe'; describe('transform', () => { // tslint:disable-next-line test('Returns an array of keys and values from the own properties of the supplied object', () => { const objectToTransform = Object.create({ widgets: 'doodads', }); objectToTransform.foo = 'bar'; objectToTransform.baz = 'bat'; const keysPipe = new KeysPipe(); expect(keysPipe.transform(objectToTransform)).toEqual( [ { key: 'foo', value: 'bar', }, { key: 'baz', value: 'bat', }, ], ); }); });