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