-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vebt-851 FE - 22-10215 - Confirmation (#33417)
* vebt-851 FE - 22-10215 - Confirmation * Update the text va-process-list-item header * VEBT-851 remove data-testId * vebt-851 create a test for 10215 confirmation page.
- Loading branch information
1 parent
33e3b87
commit 86c3e80
Showing
2 changed files
with
144 additions
and
60 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
38 changes: 38 additions & 0 deletions
38
src/applications/edu-benefits/10215/tests/containers/ConfirmationPage.unit.spec.jsx
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react'; | ||
import { expect } from 'chai'; | ||
import { Provider } from 'react-redux'; | ||
import { render } from '@testing-library/react'; | ||
import configureStore from 'redux-mock-store'; | ||
import thunk from 'redux-thunk'; | ||
import { ConfirmationPage } from '../../containers/ConfirmationPage'; | ||
|
||
const storeBase = { | ||
form: { | ||
submission: { | ||
timestamp: '2024-01-02T03:04:05.067Z', | ||
response: { | ||
confirmationNumber: '123123123', | ||
pdfUrl: '', | ||
}, | ||
}, | ||
data: { | ||
institutionName: 'Doe University', | ||
facilityCode: '12345', | ||
termStartDate: '2000-11-26', | ||
dateOfCalculations: '2021-11-26', | ||
}, | ||
}, | ||
}; | ||
|
||
describe('<ConfirmationPage>', () => { | ||
const middleware = [thunk]; | ||
const mockStore = configureStore(middleware); | ||
it('should render with data', () => { | ||
const { container } = render( | ||
<Provider store={mockStore(storeBase)}> | ||
<ConfirmationPage /> | ||
</Provider>, | ||
); | ||
expect(container).to.exist; | ||
}); | ||
}); |