-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Unit test linting #3490
Unit test linting #3490
Conversation
a4c228a
to
054cfc2
Compare
var parent, options; | ||
QUnit.test('should allows setting child options at the parent options level', function() { | ||
let parent; | ||
let options; |
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.
Can we combine this declaration and the assignment on line 189? let options = {
deddb6b
to
caf614e
Compare
@@ -686,31 +711,31 @@ test('should emit a tap event', function(){ | |||
browser.TOUCH_ENABLED = origTouch; | |||
}); | |||
|
|||
test('should provide timeout methods that automatically get cleared on component disposal', function() { | |||
expect(4); | |||
QUnit.test('should provide timeout methods that automatically get cleared on component disposal', |
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.
you can put the function back on this line, we are going to work on ignoring the length of unit test name lines
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.
Yeah, good idea. We can roll back the line length changes if we want.
20867da
to
99724c6
Compare
|
||
player.tech_['featuresVolumeControl'] = true; | ||
player.tech_.featuresVolumeControl = true; | ||
for (i = 0; i < listeners.length; i++) { |
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.
take the let i
from the top of this function and instead put it in this for statement for (let i = 0;...
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.
and on line 66 as well.
58f915a
to
b351a7d
Compare
LGTM other than the some minor comments and some |
comp1.off = function(){ throw 'Comp1 off called'; }; | ||
QUnit.equal(listenerFired, 0, 'listener was removed when this component was disposed first'); | ||
comp1.off = function() { | ||
throw new Error('Comp1 off called'); |
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.
Thanks for making this a new Error!
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.
👍
almost there! |
LGTM |
LGTM |
Files updated for videojs-standard v5:
button.test.js
clickable-component.test.js
close-button.test.js
component.test.js
controls.test.js
events.test.js
extend.test.js
menu.test.js
modal-dialog.test.js
player.test.js
Requirements Checklist