import { SearchHighlightPipe } from './search-highlight.pipe';
describe('Search highlight pipe', () => {
// This pipe is a pure, stateless function so no need for BeforeEach
let pipe = new SearchHighlightPipe();
it('should transforms "Sudipta" to "Sudipta"', () => {
expect(pipe.transform('Sudipta', 'ud')).toBe('Sudipta');
});
it('should transforms "Barack Obama" to "Barack Obama"', () => {
expect(pipe.transform('Barack Obama', 'b')).toBe('Barack Obama');
});
});