Skip to content

Commit 2b94c7c

Browse files
committed
fix(taSanitize): add test (#424)
1 parent 9426c70 commit 2b94c7c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/taSanitize.spec.js

+7
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,11 @@ describe('taSanitize', function(){
207207
expect(result).toBe('<bad-tag></bad-tag>');
208208
}));
209209
});
210+
211+
describe('check if style is satinized correctly', function(){
212+
it('should translate style to tag', inject(function(taSanitize, $sce){
213+
var result = taSanitize('Q<b>W</b><i style="font-weight: bold;">E</i><u style="font-weight: bold; font-style: italic;">R</u>T');
214+
expect(result).toBe('Q<b>W</b><i><b>E</b></i><u><i><b>R</b></i></u>T');
215+
}));
216+
});
210217
});

0 commit comments

Comments
 (0)