UNPKG

novo-elements

Version:

Bullhorn's NOVO Element Repository for Angular 2

19 lines (15 loc) 541 B
// APP import { DecodeURIPipe } from './DecodeURI'; describe('Pipe: DecodeURIPipe', () => { let pipe; beforeEach(() => { pipe = new DecodeURIPipe(); }); describe('When rendering strings', () => { it('should transform a URL encoded value into a decoded value.', () => { let encodedString: string = encodeURIComponent('Hello! This, is. a# string'); const val: string = pipe.transform(encodedString); expect(val).toBe('Hello! This, is. a# string'); }); }); });