Skip to content
Snippets Groups Projects
attribute-list-by-family.pipe.spec.ts 492 B
Newer Older
  • Learn to ignore specific revisions
  • import { AttributeListByFamilyPipe } from './attribute-list-by-family.pipe';
    import { ATTRIBUTE_LIST } from '../../../test-data';
    
    describe('[Shared][Pipes] AttributeListByFamilyPipe', () => {
        let pipe = new AttributeListByFamilyPipe();
    
        it('should return attributes corresponding to the given criteria family ID', () => {
            expect(pipe.transform(ATTRIBUTE_LIST, 1).length).toEqual(1);
            expect(pipe.transform(ATTRIBUTE_LIST, 1)).toContain(ATTRIBUTE_LIST[0]);
        });
    });