-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Conversation
has = true; | ||
break; | ||
} | ||
} |
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'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) { |
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.
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); | ||
}); | ||
|
||
}); |
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.
Missing a newline at the end of the file.
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.
LGTM aside from existing comments
Updated per feedback |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Addresses #11198 to update the entire path vs just the files.