'use strict'; var common = require('../common'); describe('TopNav', function () { describe('showViewButtons & hideViewButtons', function () { before(function () { cleanup(); }); it( 'display & hide navigation elements for viewing an existing paste', function () { var results = []; $('body').html( '' ); $.PrivateBin.TopNav.init(); results.push( $('#newbutton').hasClass('hidden') && $('#clonebutton').hasClass('hidden') && $('#rawtextbutton').hasClass('hidden') && $('#qrcodelink').hasClass('hidden') ); cleanup(); return results.every(element => element); } ); }); });