Skip to content

Commit

Permalink
fix test serial error
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds committed Jun 27, 2024
1 parent 886a4d1 commit 9cf0960
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ppr-ui/src/views/mhrInformation/MhrHistory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ onMounted(async (): Promise<void> => {
// Fetch Manufactured Home History
loading.value = true
mhrHistory.value = await getMhrHistory(getMhrInformation.value?.mhrNumber) || {}
mhrHistory.value = await getMhrHistory(getMhrInformation.value?.mhrNumber)
loading.value = false
})
Expand Down
11 changes: 8 additions & 3 deletions ppr-ui/tests/unit/MhrHistory.spec.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import { MhrHistory } from '@/views'
import { nextTick } from 'vue'
import { createComponent, setupMockStaffUser } from './utils'
import { defaultFlagSet, pacificDate } from '@/utils'
import { expect } from 'vitest'
import { defaultFlagSet, getMhrHistory, pacificDate } from '@/utils'
import { expect, vi } from 'vitest'
import { RouteNames } from '@/enums'
import { mockedFinancingStatementAll } from './test-data'

describe('HistoricalManufacturedHomeInfo', () => {
let wrapper: any

defaultFlagSet['mhr-history-enabled'] = true

vi.mock('@/utils/mhr-api-helper', () => ({
getMhrHistory: vi.fn(() =>
Promise.resolve({ }))
}))

beforeEach(async () => {
setupMockStaffUser()
wrapper = await createComponent(MhrHistory, {
Expand Down

0 comments on commit 9cf0960

Please sign in to comment.