mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-21 22:17:44 -04:00
test: Copilots tries at fixing tests
This commit is contained in:
+3
-3
@@ -88,7 +88,7 @@ describe('Helper', function () {
|
||||
$('body').html('<div id="foo"></div>');
|
||||
let e = $('#foo');
|
||||
e.text(content);
|
||||
$.PrivateBin.Helper.urls2links(e);
|
||||
$.PrivateBin.Helper.urls2links(e[0]);
|
||||
let result = e.text();
|
||||
clean();
|
||||
return content === result;
|
||||
@@ -121,7 +121,7 @@ describe('Helper', function () {
|
||||
postfix = '';
|
||||
}
|
||||
e.text(prefix + urlString + postfix);
|
||||
$.PrivateBin.Helper.urls2links(e);
|
||||
$.PrivateBin.Helper.urls2links(e[0]);
|
||||
let result = e.html();
|
||||
clean();
|
||||
urlString = $('<div />').text(urlString).html();
|
||||
@@ -144,7 +144,7 @@ describe('Helper', function () {
|
||||
$('body').html('<div id="foo"></div>');
|
||||
let e = $('#foo');
|
||||
e.text(prefix + url + postfix);
|
||||
$.PrivateBin.Helper.urls2links(e);
|
||||
$.PrivateBin.Helper.urls2links(e[0]);
|
||||
let result = e.html();
|
||||
clean();
|
||||
url = $('<div />').text(url).html();
|
||||
|
||||
Reference in New Issue
Block a user