Checks whether the url path contains the fragment argument.
url
fragment
Note that if the URL fragment does not exist, then Javascript considers the fragment to be an empty string or ''.
So if the fragment argument is also an empty string, the validation result will be true as an empty string contains and empty string.
Also Note that the validation of the url argument should be performed before passing the url argument to this validation.
expect(isURLPathsEqual(urlA, "/aa/bb/").value).toBeTruthy();
The url string
Generated using TypeDoc
Checks whether the
urlpath contains thefragmentargument.Note that if the URL fragment does not exist, then Javascript considers the fragment to be an empty string or ''.
So if the fragment argument is also an empty string, the validation result will be true as an empty string contains and empty string.
Also Note that the validation of the url argument should be performed before passing the
urlargument to this validation.Example