diff --git a/js/test/TopNav.js b/js/test/TopNav.js index d5571888..e0797d1f 100644 --- a/js/test/TopNav.js +++ b/js/test/TopNav.js @@ -681,4 +681,48 @@ describe('TopNav', function () { } ); }); + + describe('rawText', function () { + before(function () { + // Insert any setup code needed for the rawText function + // Example: Initialize the DOM elements required for testing + $('body').html( + '' + ); + }); + + it( + 'displays raw text view correctly', + function () { + rawText(); + + assert.ok($('#newbutton').hasClass('hidden')); + assert.ok($('#clonebutton').hasClass('hidden')); + assert.ok(!$('#rawtextbutton').hasClass('hidden')); + assert.ok($('#qrcodelink').hasClass('hidden')); + } + ); + + after(function () { + $('body').empty(); + }); + }); + + });