helper interacts with rawText call

This commit is contained in:
El RIDO 2024-05-18 21:55:14 +02:00
parent 5e5b394291
commit f9f8f18781
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92

View File

@ -735,6 +735,7 @@ describe('TopNav', function () {
$('body').html('<button id="rawtextbutton"></button>'); $('body').html('<button id="rawtextbutton"></button>');
const sample = 'example'; const sample = 'example';
$.PrivateBin.PasteViewer.setText(sample); $.PrivateBin.PasteViewer.setText(sample);
$.PrivateBin.Helper.reset();
$.PrivateBin.TopNav.init(); $.PrivateBin.TopNav.init();
$('#rawtextbutton').click(); $('#rawtextbutton').click();
assert.equal($('pre').text(), sample); assert.equal($('pre').text(), sample);