-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(server): check for external urls in array #1980
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1980 +/- ##
==========================================
- Coverage 92.8% 92.73% -0.08%
==========================================
Files 31 31
Lines 1181 1183 +2
Branches 329 328 -1
==========================================
+ Hits 1096 1097 +1
- Misses 81 82 +1
Partials 4 4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two notes
test/ExternalPathsWatch.test.js
Outdated
@@ -0,0 +1,91 @@ | |||
'use strict'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test/ExternalPathsWatch.test.js
Outdated
}); | ||
|
||
describe('testing single & multiple internal paths', () => { | ||
it('Should not throw exception (single line)', (done) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
single line
-> string
test/ContentBase.test.js
Outdated
testServer.close(() => { | ||
done(); | ||
}); | ||
done(); | ||
} | ||
}); | ||
}); | ||
|
||
describe('testing single & multiple internal paths', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests in this part are not necessary, all other tests already test with valid contentBase.
4e1ab38
to
6fccea4
Compare
@evilebottnawi since we have now |
@EslamHiko yes, will be great 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/cc @hiroppy
Sorry for delay |
Thanks! |
@evilebottnawi no problems 😃. @hiroppy My pleasure 😄. |
* fix: check for external urls in array * test: move tests to contentBase * fix: use is-absolute-url & add test case for number type
For Bugs and Features; did you add new tests?
Yes
Motivation / Use-Case
fixes : #1879
Breaking Changes
no
Additional Info
Tests pass then errors show up 😕 maybe because I use windows, let's see will CI be green or not.