handling further JSHint warnings and TODOs

This commit is contained in:
El RIDO 2018-01-06 13:32:07 +01:00
parent 98d07e0789
commit ffae6111b0
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
7 changed files with 57 additions and 86 deletions

View file

@ -99,10 +99,9 @@ describe('Alert', function () {
'shows a loading message',
jsc.array(common.jscAlnumString()),
jsc.array(common.jscAlnumString()),
'integer',
function (icon, message, number) {
icon = icon.join('');
function (message, icon) {
message = message.join('');
icon = icon.join('');
var defaultMessage = 'Loading…';
if (message.length === 0) {
message = defaultMessage;
@ -118,7 +117,7 @@ describe('Alert', function () {
defaultMessage + '</li></ul>'
);
$.PrivateBin.Alert.init();
$.PrivateBin.Alert.showLoading(message, number, icon);
$.PrivateBin.Alert.showLoading(message, icon);
var result = $('body').html();
return expected === result;
}