Skip to content

Fix eslint errors on tests #41

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

Merged
merged 1 commit into from
Aug 2, 2017
Merged

Fix eslint errors on tests #41

merged 1 commit into from
Aug 2, 2017

Conversation

Ladsgroup
Copy link
Contributor

Still keeping the .eslintrc.json file for qunit

@Ladsgroup Ladsgroup requested a review from manicki August 1, 2017 10:51
@@ -21,14 +21,14 @@ QUnit.test( 'registerDeserializer(), newDeserializerFor()', function( assert ) {
}
];

assert.throws(
assert['throws'](
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I was trying to say on the other PR. I'd rather ignore dot-notation rule in tests and keep the "old" form here. assert['throws'] looks silly given assert.ok etc are "fine" by eslint.

@manicki
Copy link
Member

manicki commented Aug 1, 2017

Seems ok but I am not convinced by assert['throws']

Still keeping the .eslintrc.json file for qunit
@Ladsgroup
Copy link
Contributor Author

I removed the assert['throws'] parts

Copy link
Contributor

@thiemowmde thiemowmde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full, individual review done. I think this patch can be merged as it is, but I do have a suggestion.

@@ -46,7 +46,7 @@ QUnit.test( 'registerSerializer(), newSerializerFor()', function( assert ) {
);

assert.ok(
serializerFactory.newSerializerFor( new( testSets[0].Constructor ) ).constructor
serializerFactory.newSerializerFor( new ( testSets[0].Constructor ) ).constructor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The brackets don't do anything here and should be removed, in my opinion.

Also I believe the syntax should be new testSets[0].Constructor().

@manicki manicki merged commit 20822d8 into master Aug 2, 2017
@manicki manicki deleted the fix_eslint branch August 2, 2017 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants