From 9bc3f3cf304c300c758743f2e460beb1fee3ecac Mon Sep 17 00:00:00 2001 From: kondou Date: Sat, 1 Mar 2014 02:46:27 +0100 Subject: Scrutinizer cleanup --- core/js/tests/specHelper.js | 3 ++- core/js/tests/specs/coreSpec.js | 14 +++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'core/js/tests') diff --git a/core/js/tests/specHelper.js b/core/js/tests/specHelper.js index b9be9188a4e..fc5043c2f49 100644 --- a/core/js/tests/specHelper.js +++ b/core/js/tests/specHelper.js @@ -89,7 +89,8 @@ window.oc_defaults = {}; "Content-Type": "application/json" }, '{"data": [], "plural_form": "nplurals=2; plural=(n != 1);"}' - ]); + ] + ); // make it globally available, so that other tests can define // custom responses diff --git a/core/js/tests/specs/coreSpec.js b/core/js/tests/specs/coreSpec.js index 47e5ebfed55..c8e819f7dc5 100644 --- a/core/js/tests/specs/coreSpec.js +++ b/core/js/tests/specs/coreSpec.js @@ -193,24 +193,24 @@ describe('Core base tests', function() { unicode: '汉字' })).toEqual('unicode=%E6%B1%89%E5%AD%97'); expect(OC.buildQueryString({ - b: 'spaace value', - 'space key': 'normalvalue', - 'slash/this': 'amp&ersand' + b: 'spaace value', + 'space key': 'normalvalue', + 'slash/this': 'amp&ersand' })).toEqual('b=spaace%20value&space%20key=normalvalue&slash%2Fthis=amp%26ersand'); }); it('Encodes data types and empty values', function() { expect(OC.buildQueryString({ 'keywithemptystring': '', - 'keywithnull': null, - 'keywithundefined': null, + 'keywithnull': null, + 'keywithundefined': null, something: 'else' })).toEqual('keywithemptystring=&keywithnull&keywithundefined&something=else'); expect(OC.buildQueryString({ - 'booleanfalse': false, + 'booleanfalse': false, 'booleantrue': true })).toEqual('booleanfalse=false&booleantrue=true'); expect(OC.buildQueryString({ - 'number': 123 + 'number': 123 })).toEqual('number=123'); }); }); -- cgit v1.2.3