import {HTMLEntitiesDecoder} from './htmlentities-decoder'; describe('HTMLEntitiesDecoder', () => { it('should create an instance', () => { expect(new HTMLEntitiesDecoder()).toBeTruthy(); }); it('should have the id "decodehtmlentities"', () => { expect(new HTMLEntitiesDecoder().getId()).toEqual('decodehtmlentities'); }); it('should decode "<span>"Hi" & "Lo"</span>" to ""Hi" & "Lo""', () => { expect(new HTMLEntitiesDecoder().convert('<span>"Hi" & "Lo"</span>')) .toEqual('"Hi" & "Lo"'); }); });