You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
While adding a new unit test, I noticed that some of the existing unit tests are not actually testing anything.
For example, in urlutilTest.js:
describe('getScheme',function(){// ...it('localhost: for localhost',function*(){assert.equal(UrlUtil.getScheme('localhost://127.0.0.1'),'localhost:')})
...if you replace 'localhost:' with 'yolo', the tests still pass!
Looks like we can fix this by removing generator functions. In other words, turning function * into function.
The text was updated successfully, but these errors were encountered:
While adding a new unit test, I noticed that some of the existing unit tests are not actually testing anything.
For example, in
urlutilTest.js
:...if you replace 'localhost:' with 'yolo', the tests still pass!
Looks like we can fix this by removing generator functions. In other words, turning
function *
intofunction
.The text was updated successfully, but these errors were encountered: