memory display in columns, adding copy function

This commit is contained in:
El RIDO
2020-07-07 21:53:28 +02:00
parent e531592b05
commit 2b9abb8db4
5 changed files with 53 additions and 17 deletions

View File

@@ -12,10 +12,11 @@ describe('Memory', function () {
jsc.array(common.jscQueryString()),
'string',
function (schema, address, query, fragment) {
const expected = schema + '://' + address.join('') + '/?' +
encodeURI(
query.join('').replace(/^&+|&+$/gm,'') + '#' + fragment
const expectedQuery = encodeURI(
query.join('').replace(/^&+|&+$/gm,'')
),
expected = schema + '://' + address.join('') + '/?' +
expectedQuery + '#' + fragment,
clean = jsdom();
$('body').html(
'<main><div id="sidebar-wrapper"><table><tbody>' +
@@ -25,9 +26,9 @@ describe('Memory', function () {
$.PrivateBin.Memory.init();
$.PrivateBin.Memory.add(expected);
$.PrivateBin.Memory.refreshList();
const result = $('#sidebar-wrapper table tbody tr td')[0].textContent;
const result = $('#sidebar-wrapper table tbody tr td')[3].textContent;
clean();
return result === expected;
return result === expectedQuery;
}
);
});