feat: Show pre-chat form before triggering the campaign (#3215)

This commit is contained in:
Muhsin Keloth
2021-11-11 19:02:16 +05:30
committed by GitHub
parent 76370267f3
commit c6326993df
9 changed files with 175 additions and 26 deletions

View File

@@ -33,4 +33,12 @@ describe('#mutations', () => {
expect(state.activeCampaign).toEqual(campaigns[0]);
});
});
describe('#setCampaignExecuted', () => {
it('set campaign executed flag', () => {
const state = { records: [], uiFlags: {}, campaignHasExecuted: false };
mutations.setCampaignExecuted(state);
expect(state.campaignHasExecuted).toEqual(true);
});
});
});