diff --git a/Specs/Browser/Browser.js b/Specs/Browser/Browser.js index 4b7beffd4..db4050ac9 100644 --- a/Specs/Browser/Browser.js +++ b/Specs/Browser/Browser.js @@ -49,6 +49,11 @@ describe('String.stripScripts', function(){ expect(window.stripScriptsSpec).to.equal(4242); }); + it('should not execute json scripts', function(){ + expect('
'.stripScripts()).to.equal(''); + expect(window.stripScriptsSpec424242).to.equal(undefined); + }); + }); describe('Document', function(){ diff --git a/package.json b/package.json index cb0ae16d9..492ae6a95 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "grunt-karma": "^2.0.0", "grunt-mocha-test": "^0.12.7", "grunt-mootools-packager": "^0.4.0", - "karma": "^1.7.0", + "karma": "^1.7.1", "karma-expect": "^1.1", "karma-mocha": "^0.2.0", "karma-phantomjs-launcher": "^1.0.4",