-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Implement unit tests for the isSameOrigin
and createValidAbsoluteUrl
utility functions and use the const
keyword for constants in src/shared/util.js
#10061
Conversation
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/37b6a56524605b2/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.215.176.217:8877/900d0f6ea27bf4c/output.txt |
isSameOrigin
and createValidAbsoluteUrl
utulity functions and use the const
keyword for constants in src/shared/util.js
isSameOrigin
and createValidAbsoluteUrl
utility functions and use the const
keyword for constants in src/shared/util.js
e362d96
to
16a8a5a
Compare
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.
More unit-test coverage is always great to have, and collecting the constants in one place will make the file easier to deal with; thank you for doing this!
From: Bot.io (Windows)FailedFull output at http://54.215.176.217:8877/900d0f6ea27bf4c/output.txt Total script time: 24.69 mins
Image differences available at: http://54.215.176.217:8877/900d0f6ea27bf4c/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/37b6a56524605b2/output.txt Total script time: 36.41 mins
|
…rl` utility functions Moreover, mark the `isValidProtocol` function as private since it's only used in the utilities file and is not (meant to be) exported.
Moreover, move general constants to the top of the file, i.e., those that are not closely tied to a function in the file.
16a8a5a
to
bf13c8a
Compare
It turns out that the /botio unittest |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @timvandermeij received. Current queue size: 0 Live output at: http://54.215.176.217:8877/f17e299397cd71d/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/8780f9538abf36d/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/f17e299397cd71d/output.txt Total script time: 5.28 mins
|
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/8780f9538abf36d/output.txt Total script time: 8.12 mins
|
This helps to increase test coverage of the
src/shared/util.js
file.@Snuffleupagus Would you be willing to review this?