mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-21 14:08:48 -04:00
expanded unit tests to cover mega links, reverted regex to old one, but fixed to cover mega links, just to prove it works
This commit is contained in:
parent
c468b74b9b
commit
10201dc463
6 changed files with 12 additions and 7 deletions
|
@ -81,7 +81,7 @@ describe('Model', function () {
|
|||
'returns the query string without separator, if any',
|
||||
jsc.nearray(common.jscA2zString()),
|
||||
jsc.nearray(common.jscA2zString()),
|
||||
jsc.nearray(common.jscQueryString()),
|
||||
jsc.nearray(common.jscHashString()),
|
||||
'string',
|
||||
function (schema, address, query, fragment) {
|
||||
var queryString = query.join(''),
|
||||
|
@ -145,7 +145,7 @@ describe('Model', function () {
|
|||
jsc.nearray(common.jscA2zString()),
|
||||
jsc.array(common.jscQueryString()),
|
||||
jsc.nearray(common.jscBase64String()),
|
||||
jsc.array(common.jscQueryString()),
|
||||
jsc.array(common.jscHashString()),
|
||||
function (schema, address, query, fragment, trail) {
|
||||
var fragmentString = fragment.join(''),
|
||||
clean = jsdom('', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue