fix unit test
This commit is contained in:
parent
c6bff1797e
commit
faee351ca1
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue