Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

add validation for package name length - #1064

Merged
azlam-abdulsalam merged 9 commits into
developfrom
issue/998
Jun 20, 2022
Merged

azlam-abdulsalam merged 9 commits into
developfrom
issue/998

Conversation

@zhebinliu

@zhebinliu zhebinliu commented Jun 19, 2022 •

Copy link
Copy Markdown
Contributor

Description

Checklist

All items have to be completed before a PR is merged

  • Adhere to Contribution Guidelines
  • Updates to Decision Records considered?
  • Updates to documentation at DX@Scale Guide considered?
  • Tested changes?
  • Unit Tests new and existing passing locally?

@codecov-commenter

codecov-commenter commented Jun 19, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #1064 (0f4cb9a) into develop (5a6c0bf) will increase coverage by 0.16%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #1064      +/-   ##
===========================================
+ Coverage    59.40%   59.57%   +0.16%     
===========================================
  Files           52       52              
  Lines         1680     1687       +7     
  Branches       349      351       +2     
===========================================
+ Hits           998     1005       +7     
  Misses         682      682              
Impacted Files Coverage Δ
...ckages/sfpowerscripts-cli/src/ProjectValidation.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a6c0bf...0f4cb9a. Read the comment docs.

@azlam-abdulsalam

Copy link
Copy Markdown
Contributor

@azlam-abdulsalam
azlam-abdulsalam self-requested a review June 19, 2022 22:07

@azlam-abdulsalam azlam-abdulsalam left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Request for refactor

@azlam-abdulsalam azlam-abdulsalam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Few more :)

}

expect(excep);
expect(excep.message).toContain('feature-mgmt-and-ordering-systems-org-dep');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you check for the error message rather than the package name

}

expect(excep);
expect(excep.message).toContain('feature-mgmt-&-ordering-systems-org-dep');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same as above

@azlam-abdulsalam azlam-abdulsalam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

small fix on exception message

@azlam-abdulsalam azlam-abdulsalam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No clear error when package name exceeds 38 characters

3 participants