Skip to content
Snippets Groups Projects
survey-by-name.pipe.spec.ts 368 B
Newer Older
  • Learn to ignore specific revisions
  • import { SurveyByNamePipe } from './survey-by-name.pipe';
    import { SURVEY_LIST } from '../../../test-data';
    
    describe('[Shared][Pipes] SurveyByNamePipe', () => {
        let pipe = new SurveyByNamePipe();
    
        it('should return survey corresponding to the given name', () => {
            expect(pipe.transform(SURVEY_LIST, 'survey-one')).toEqual(SURVEY_LIST[0]);
        });
    });