diff --git a/js/test.js b/js/test.js index dfbeb38f..a59885a5 100644 --- a/js/test.js +++ b/js/test.js @@ -1243,5 +1243,24 @@ describe('PasteStatus', function () { } ); }); + + describe('hideMessages', function () { + before(function () { + cleanup(); + }); + + it( + 'hides all messages', + function() { + $('body').html( + '
' + ); + $.PrivateBin.PasteStatus.init(); + $.PrivateBin.PasteStatus.hideMessages(); + return $('#remainingtime').hasClass('hidden') && + $('#pastesuccess').hasClass('hidden'); + } + ); + }); });