Skip to content

fix(schematics): remove temp path #11198 #11424

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 3 commits into from
Jun 7, 2018

Conversation

amcdnl
Copy link
Contributor

@amcdnl amcdnl commented May 20, 2018

Addresses #11198 to update the entire path vs just the files.

@amcdnl amcdnl self-assigned this May 20, 2018
@amcdnl amcdnl requested a review from mmalerba May 20, 2018 15:45
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 20, 2018
has = true;
break;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't it be just const hasTempFile = tree.files.indexOf('angular_material_schematics-') !== -1;?

const files = tree.files;

let has = false;
for (const file of files) {
Copy link
Member

Choose a reason for hiding this comment

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

If files is an array, you should be able to reduce the assertion to this:

expect(files.find(file => file.includes('angular_material_schematics-'))).toBeTruthy();

expect(has).toBe(false);
});

});
Copy link
Member

Choose a reason for hiding this comment

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

Missing a newline at the end of the file.

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM aside from existing comments

@jelbourn jelbourn added pr: merge safe target: patch This PR is targeted for the next patch release labels May 22, 2018
@amcdnl
Copy link
Contributor Author

amcdnl commented Jun 4, 2018

Updated per feedback

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Jun 4, 2018
@andrewseguin andrewseguin merged commit b349de3 into angular:master Jun 7, 2018
andrewseguin pushed a commit that referenced this pull request Jun 8, 2018
* fix(schematics): remove temp path #11198

* chore: remove console

* chore: pr nit
@amcdnl amcdnl deleted the schematic-update-temp branch June 10, 2018 14:05
@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 cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants