Skip to content

Commit

Permalink
24041 Fix alteration of company type issues (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
leodube-aot authored Nov 12, 2024
1 parent 5f75da1 commit 0d46499
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "business-edit-ui",
"version": "4.11.4",
"version": "4.11.5",
"private": true,
"appName": "Edit UI",
"sbcName": "SBC Common Components",
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/YourCompany/ChangeBusinessType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ export default class ChangeBusinessType extends Mixins(CommonMixin) {
}
if (this.isCommunityContribution) {
originalName = originalName.replace(' LTD.', '')
originalName += ' COMMUNITY CONTRIBUTION COMPANY'
originalName += ' COMMUNITY CONTRIBUTION COMPANY LTD.'
return originalName
}
if (this.isBcLimited || this.isBenefitCompany) {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ChangeBusinessType.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ describe('Change Business Type component', () => {
wrapper.vm.selectedEntityType = CorpTypeCd.BC_CCC
wrapper.vm.submitTypeChange()

expect(wrapper.vm.getNameRequestLegalName).toBe('1234567 COMMUNITY CONTRIBUTION COMPANY')
expect(wrapper.vm.getNameRequestLegalName).toBe('1234567 COMMUNITY CONTRIBUTION COMPANY LTD.')

store.stateModel.entitySnapshot.businessInfo.legalType = CorpTypeCd.BC_ULC_COMPANY
store.stateModel.entitySnapshot.businessInfo.legalName = '1234567 COMMUNITY CONTRIBUTION COMPANY'
Expand Down

0 comments on commit 0d46499

Please sign in to comment.