Newer
Older
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]);
});
});