fix unit test

This commit is contained in:
Katie Kroell 2023-11-10 15:05:08 -05:00
parent c6bff1797e
commit faee351ca1

View file

@ -797,8 +797,8 @@ describe.skip('coverageStatement.vue', () => {
});
describe('coverageStatement.vue-working', () => {
describe('Navigation', () => {
test('Function called on any FORWARD navigation', () => {
describe('ITAC flag', () => {
test('ITAC flag updated once component is initialized', () => {
// Arrange
const mainInitialState = {
order: {
@ -810,7 +810,7 @@ describe('coverageStatement.vue-working', () => {
const { wrapper } = getMountedComponent(mainInitialState);
// Act
wrapper.vm.forwardButtonAction();
wrapper.vm.initializeComponent();
// Assert
expect(wrapper.vm.mainStore.updatePolicyITACFlag)