Skip to content

Instantly share code, notes, and snippets.

@AbdulKabia
Created April 15, 2018 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AbdulKabia/06545054416ed7a1f88a2e89da637727 to your computer and use it in GitHub Desktop.
Save AbdulKabia/06545054416ed7a1f88a2e89da637727 to your computer and use it in GitHub Desktop.
it('is a valid search with space inside of search', function () {
assert.equal(urlUtil.isNotURL('https://www.google.ca/search?q=dog cat'), false)
})
it('is a valid search with leading and trailing spaces', function () {
assert.equal(urlUtil.isNotURL(' https://www.google.ca/search?q=dog cat '), false)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment