From af0273100233873c2f7f3f4041ebb07f7f4a8f04 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Mon, 29 Jun 2020 20:58:53 +0200 Subject: [PATCH] remove tests for dead code --- js/test/TopNav.js | 56 ----------------------------------------------- 1 file changed, 56 deletions(-) diff --git a/js/test/TopNav.js b/js/test/TopNav.js index e5a29c41..d354995f 100644 --- a/js/test/TopNav.js +++ b/js/test/TopNav.js @@ -118,62 +118,6 @@ describe('TopNav', function () { ); }); - describe('showNewPasteButton', function () { - before(function () { - cleanup(); - }); - - it( - 'displays the button for creating a paste', - function () { - var results = []; - $('body').html( - '' - ); - $.PrivateBin.TopNav.init(); - results.push( - $('#newbutton').hasClass('hidden') - ); - $.PrivateBin.TopNav.showNewPasteButton(); - results.push( - !$('#newbutton').hasClass('hidden') - ); - cleanup(); - assert.ok(results.every(element => element)); - } - ); - }); - - describe('hideCloneButton', function () { - before(function () { - cleanup(); - }); - - it( - 'hides the button for cloning a paste', - function () { - var results = []; - $('body').html( - '' - ); - $.PrivateBin.TopNav.init(); - results.push( - !$('#clonebutton').hasClass('hidden') - ); - $.PrivateBin.TopNav.hideCloneButton(); - results.push( - $('#clonebutton').hasClass('hidden') - ); - cleanup(); - assert.ok(results.every(element => element)); - } - ); - }); - describe('hideRawButton', function () { before(function () { cleanup();