Skip to content

Commit

Permalink
fix(taSanitize): add test (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
marbug committed Dec 12, 2014
1 parent 9426c70 commit 2b94c7c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/taSanitize.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,11 @@ describe('taSanitize', function(){
expect(result).toBe('<bad-tag></bad-tag>');
}));
});

describe('check if style is satinized correctly', function(){
it('should translate style to tag', inject(function(taSanitize, $sce){
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');
expect(result).toBe('Q<b>W</b><i><b>E</b></i><u><i><b>R</b></i></u>T');
}));
});
});

0 comments on commit 2b94c7c

Please sign in to comment.