import { OutputFamilyByIdPipe } from './output-family-by-id.pipe'; import { OUTPUT_FAMILY_LIST } from '../../../test-data'; describe('[Shared][Pipes] OutputFamilyByIdPipe', () => { let pipe = new OutputFamilyByIdPipe(); it('should return output family corresponding to the given ID', () => { expect(pipe.transform(OUTPUT_FAMILY_LIST, 1)).toEqual(OUTPUT_FAMILY_LIST[1]); }); });