CSR-706 | Fixing test
This commit is contained in:
parent
0d956d9e0f
commit
8f750e8c1d
2 changed files with 6 additions and 14 deletions
|
|
@ -504,19 +504,6 @@ export const actions = {
|
||||||
context.commit(storeMutations.UPDATE_CRM_CUSTOMER_ID, crmCustomerId);
|
context.commit(storeMutations.UPDATE_CRM_CUSTOMER_ID, crmCustomerId);
|
||||||
},
|
},
|
||||||
|
|
||||||
logExperimentExposure(context, { userId, sessionKey, pageName, universeName }) {
|
|
||||||
return globalMethods.callHttpClient({
|
|
||||||
method: endpoints.LogExperimentExposureIfAssigned.method,
|
|
||||||
endpoint: endpoints.LogExperimentExposureIfAssigned.url,
|
|
||||||
payload: {
|
|
||||||
userId: userId,
|
|
||||||
sessionKey: sessionKey,
|
|
||||||
pageName: pageName,
|
|
||||||
universeName: universeName
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
logPageView(context, { userId, sessionKey, pageName, sessionId, action, event, shouldUseSessionId }) {
|
logPageView(context, { userId, sessionKey, pageName, sessionId, action, event, shouldUseSessionId }) {
|
||||||
var payload = {
|
var payload = {
|
||||||
userId: userId,
|
userId: userId,
|
||||||
|
|
|
||||||
|
|
@ -571,12 +571,17 @@ describe("Actions", () => {
|
||||||
registration: {}
|
registration: {}
|
||||||
},
|
},
|
||||||
damage: {},
|
damage: {},
|
||||||
|
applicationUser: {
|
||||||
|
lastPageVisited: "test-page",
|
||||||
|
crmCustomerId: "xxx-xxx-xxx",
|
||||||
|
saveQuoteId: "xxx-xxx-xxx"
|
||||||
|
}
|
||||||
};
|
};
|
||||||
context.state = {
|
context.state = {
|
||||||
order: {
|
order: {
|
||||||
serviceLocation: {},
|
serviceLocation: {},
|
||||||
customer: {}
|
customer: {}
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
globalMethods.callHttpClient.mockImplementation(() => {
|
globalMethods.callHttpClient.mockImplementation(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue