Remove the tests since the library is tested
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
6c489a6d40
commit
32587d7007
1 changed files with 0 additions and 11 deletions
|
@ -132,17 +132,6 @@ describe('Core base tests', function() {
|
||||||
expect(OC.dirname('/subdir/')).toEqual('/subdir');
|
expect(OC.dirname('/subdir/')).toEqual('/subdir');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe('escapeHTML', function() {
|
|
||||||
it('Returns nothing if no string was given', function() {
|
|
||||||
expect(escapeHTML('')).toEqual('');
|
|
||||||
});
|
|
||||||
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!');
|
|
||||||
});
|
|
||||||
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.');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('joinPaths', function() {
|
describe('joinPaths', function() {
|
||||||
it('returns empty string with no or empty arguments', function() {
|
it('returns empty string with no or empty arguments', function() {
|
||||||
expect(OC.joinPaths()).toEqual('');
|
expect(OC.joinPaths()).toEqual('');
|
||||||
|
|
Loading…
Reference in a new issue