Fix typo
This commit is contained in:
parent
360a79b8f4
commit
603b6c13b4
|
@ -131,7 +131,7 @@ describe('Core base tests', function() {
|
||||||
it('Returns a sanitized string if a string containing HTML is given', function() {
|
it('Returns a sanitized string if a string containing HTML is given', function() {
|
||||||
expect(escapeHTML('There needs to be a <script>alert(\"Unit\" + \'test\')</script> for it!')).toEqual('There needs to be a <script>alert("Unit" + 'test')</script> for it!');
|
expect(escapeHTML('There needs to be a <script>alert(\"Unit\" + \'test\')</script> for it!')).toEqual('There needs to be a <script>alert("Unit" + 'test')</script> for it!');
|
||||||
});
|
});
|
||||||
it('Returns the string without modification if no potential dangerous character is passed.', function() {
|
it('Returns the string without modification if no potentially dangerous character is passed.', function() {
|
||||||
expect(escapeHTML('This is a good string without HTML.')).toEqual('This is a good string without HTML.');
|
expect(escapeHTML('This is a good string without HTML.')).toEqual('This is a good string without HTML.');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue