Skip to content
Snippets Groups Projects
output-family-by-id.pipe.spec.ts 400 B
Newer Older
  • Learn to ignore specific revisions
  • 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]);
        });
    });