-
Notifications
You must be signed in to change notification settings - Fork 940
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bit-aspect-update): indicate in the output when components are up…
… to date (#6566) Currently it shows a misleading message: "unable to find any component that use ..."
- Loading branch information
1 parent
72936a8
commit c1efaca
Showing
3 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,11 @@ describe('aspect', function () { | |
expect(show).to.have.string(`${helper.scopes.remote}/[email protected]`); | ||
expect(show).not.to.have.string(`${helper.scopes.remote}/[email protected]`); | ||
}); | ||
it('running the same command again, should not show a message that no component is using this aspect', () => { | ||
const secondRun = helper.command.updateAspect(`${helper.scopes.remote}/my-aspect`); | ||
expect(secondRun).to.have.string('are already up to date'); | ||
expect(secondRun).to.not.have.string('unable to find any component'); | ||
}); | ||
it('bit tag should save only the updated aspect and not the old one', () => { | ||
helper.command.importComponent('my-aspect'); // otherwise, the tag will try to get it as a package | ||
helper.command.tagAllComponents(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters