mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-11-30 11:06:48 -05:00
improve JS unit test readability & error reporting
This commit is contained in:
parent
06e95a0911
commit
e853a934ea
5 changed files with 97 additions and 39 deletions
|
|
@ -306,10 +306,8 @@ describe('Alert', function () {
|
|||
$('body').addClass('loading');
|
||||
$.PrivateBin.Alert.init();
|
||||
$.PrivateBin.Alert.hideLoading();
|
||||
assert.ok(
|
||||
!$('body').hasClass('loading') &&
|
||||
$('#loadingindicator').hasClass('hidden')
|
||||
);
|
||||
assert.ok(!$('body').hasClass('loading'));
|
||||
assert.ok($('#loadingindicator').hasClass('hidden'));
|
||||
}
|
||||
);
|
||||
});
|
||||
|
|
@ -328,10 +326,8 @@ describe('Alert', function () {
|
|||
);
|
||||
$.PrivateBin.Alert.init();
|
||||
$.PrivateBin.Alert.hideMessages();
|
||||
assert.ok(
|
||||
$('#status').hasClass('hidden') &&
|
||||
$('#errormessage').hasClass('hidden')
|
||||
);
|
||||
assert.ok($('#status').hasClass('hidden'));
|
||||
assert.ok($('#errormessage').hasClass('hidden'));
|
||||
}
|
||||
);
|
||||
});
|
||||
|
|
@ -381,4 +377,3 @@ describe('Alert', function () {
|
|||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue