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>');
const sample = 'example';
$.PrivateBin.PasteViewer.setText(sample);
$.PrivateBin.Helper.reset();
$.PrivateBin.TopNav.init();
$('#rawtextbutton').click();
assert.equal($('pre').text(), sample);