summaryrefslogtreecommitdiffstats
path: root/core/js/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-06-03 07:44:52 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-06-03 07:44:52 +0200
commit5add56b6ca7a9ad5c89af0d18af42dcff7f46f45 (patch)
tree5f6c04f56b6a86623b8705a252a3669b2b0ebb31 /core/js/tests
parentd6e521006a9a30e4c23aaa114146e62927c3c836 (diff)
parentaf32c67923fcd3f1ec2a4553249d6f420a14df18 (diff)
downloadnextcloud-server-5add56b6ca7a9ad5c89af0d18af42dcff7f46f45.tar.gz
nextcloud-server-5add56b6ca7a9ad5c89af0d18af42dcff7f46f45.zip
Merge pull request #7485 from owncloud/scrutinizer_fix_1_kondou
Scrutinizer cleanup
Diffstat (limited to 'core/js/tests')
-rw-r--r--core/js/tests/specHelper.js3
-rw-r--r--core/js/tests/specs/coreSpec.js14
2 files changed, 9 insertions, 8 deletions
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 b46ece05cb9..37b5ceeec9e 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');
});
});