mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-05 02:19:28 +02:00
This commit is contained in:
parent
f03f2bf28d
commit
81b324cfa6
4 changed files with 38 additions and 23 deletions
|
@ -255,10 +255,10 @@ describe('Helper', function () {
|
|||
); */
|
||||
});
|
||||
|
||||
describe('baseUri', function () {
|
||||
describe('windowLocationBaseUri', function () {
|
||||
this.timeout(30000);
|
||||
jsc.property(
|
||||
'returns the URL without query & fragment',
|
||||
'returns the window location URL without query & fragment',
|
||||
common.jscSchemas(false),
|
||||
common.jscUrl(),
|
||||
function (schema, url) {
|
||||
|
@ -269,7 +269,7 @@ describe('Helper', function () {
|
|||
$.PrivateBin.Helper.reset();
|
||||
const expected = common.urlToString(url),
|
||||
clean = jsdom('', {url: fullUrl}),
|
||||
result = $.PrivateBin.Helper.baseUri();
|
||||
result = $.PrivateBin.Helper.windowLocationBaseUri();
|
||||
clean();
|
||||
return expected === result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue