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(testing): override metadata subclasses properly #10767

Merged
merged 1 commit into from Aug 13, 2016

Conversation

juliemr
Copy link
Member

@juliemr juliemr commented Aug 12, 2016

This fixes an issue where TestBed.overrideComponent(MyComp, {})
would remove some properties including providers from the component.

This was due to the override not properly dealing with getter fields
on subclasses.

@juliemr juliemr added type: bug/fix area: testing Issues related to Angular testing features, such as TestBed labels Aug 12, 2016
@juliemr juliemr added this to the 2.0.0-rc.6 milestone Aug 12, 2016
otherPlainProp: 'newOtherProp'
}));
});

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: extra line

This fixes an issue where `TestBed.overrideComponent(MyComp, {})`
would remove some properties including `providers` from the component.

This was due to the override not properly dealing with getter fields
on subclasses.
@chuckjaz chuckjaz added the action: merge The PR is ready for merge by the caretaker label Aug 12, 2016
@vikerman vikerman merged commit 87fe477 into angular:master Aug 13, 2016
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: testing Issues related to Angular testing features, such as TestBed cla: yes type: bug/fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants