Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
move ends with period test == true to correct position
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdh committed Dec 8, 2016
1 parent cd71e0e commit 534dc14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/lib/urlutilTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ describe('urlutil', function () {
it('ends with period (input contains a forward slash and domain)', function () {
assert.equal(UrlUtil.isNotURL('brave.com/test/cc?_ri_=3vv-8-e.'), false)
})
it('ends with period (input contains only a forward slash)', function () {
assert.equal(UrlUtil.isNotURL('brave/com/test/cc?_ri_=3vv-8-e.'), true)
})
it('is a string with whitespace but has schema', function () {
assert.equal(UrlUtil.isNotURL('https://wwww.brave.com/test space.jpg'), false)
})
Expand Down Expand Up @@ -128,6 +125,9 @@ describe('urlutil', function () {
it('ends with . (input does NOT contain a forward slash)', function () {
assert.equal(UrlUtil.isNotURL('brave.'), true)
})
it('ends with period (input contains only a forward slash)', function () {
assert.equal(UrlUtil.isNotURL('brave/com/test/cc?_ri_=3vv-8-e.'), true)
})
})
it('is a string with schema but invalid domain name', function () {
assert.equal(UrlUtil.isNotURL('https://www.bra ve.com/test space.jpg'), true)
Expand Down

0 comments on commit 534dc14

Please sign in to comment.