Skip to content

Commit

Permalink
Merge pull request #744 from ArwenQin/23554-Restoration-Fee-Summary
Browse files Browse the repository at this point in the history
23554 - Fixed the Restoration Application Fee Summary Bug
  • Loading branch information
ArwenQin authored Oct 9, 2024
2 parents 3eb9e4c + 8f15461 commit 01d87ca
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 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-create-ui",
"version": "5.12.1",
"version": "5.12.2",
"private": true,
"appName": "Create UI",
"sbcName": "SBC Common Components",
Expand Down
1 change: 1 addition & 0 deletions src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,7 @@ export const useStore = defineStore('store', {
switch (true) {
case this.isFullRestorationFiling: return [this.resourceModel.filingData[0]]
case this.isLimitedRestorationFiling: return [this.resourceModel.filingData[1]]
case (this.isRestorationFiling && !this.isFullRestorationFiling && !this.isLimitedRestorationFiling): return []
case this.isAmalgamationFilingHorizontal: return [this.resourceModel.filingData[0]]
case this.isAmalgamationFilingVertical: return [this.resourceModel.filingData[1]]
default: return this.resourceModel.filingData
Expand Down
8 changes: 7 additions & 1 deletion tests/unit/App.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ describe('Restoration - App page', () => {
foundingDate: '2021-10-07T20:37:41+00:00'
},
restoration: {
type: 'fullRestoration'
type: '' // initially set to null, to test the fee summary
},
header: {
affectedFilings: [],
Expand Down Expand Up @@ -1102,6 +1102,12 @@ describe('Restoration - App page', () => {
expect(wrapper.findComponent(Stepper).exists()).toBe(true)
expect(wrapper.findComponent(Actions).exists()).toBe(true)
})

it('displays the fee summary amount properly for restoration application', async () => {
const feeSummary = wrapper.findComponent(SbcFeeSummary)
// when restoration type is initially not chosen, the fee summary is called with empty []
expect(feeSummary.props('filingData')).toEqual([])
})
})

describe('Breadcrumbs for firms - Without Easy Legal Name Fix', () => {
Expand Down

0 comments on commit 01d87ca

Please sign in to comment.