Skip to content
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(rule): 'NgModule' not being handled properly for contextual-lifecycle and contextual-decorators #790

Merged
merged 1 commit into from Mar 18, 2019

Conversation

wKoza
Copy link
Collaborator

@wKoza wKoza commented Mar 17, 2019

No description provided.

@@ -150,6 +150,170 @@ describe(ruleName, () => {
});
});

describe('failure', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
describe('failure', () => {

We already have a failure describe block. You can put the NgModule block into it.

@rafaelss95
Copy link
Collaborator

rafaelss95 commented Mar 17, 2019

Nice catch! ✅

I guess this change also fix the contextual-decorator, right? If so, can we add respective tests to it and rephrase the commit as well?

@wKoza wKoza force-pushed the fix-contextual-lifecycle-rule branch from 6c389aa to c3847e5 Compare March 17, 2019 20:20
@wKoza
Copy link
Collaborator Author

wKoza commented Mar 17, 2019

Actually, we kill two birds with one stone.

@rafaelss95 rafaelss95 changed the title fix(contextual-lifecycle): handle NgModule lifecycle methods fix(rule): 'NgModule' not being handled properly for contextual-lifecycle and contextual-decorators Mar 17, 2019
@rafaelss95
Copy link
Collaborator

LGMT!

@mgechev mgechev merged commit cedfa2e into mgechev:master Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants