CSR-622 Fix tests
This commit is contained in:
parent
e849a8a58e
commit
f03e0737f8
1 changed files with 7 additions and 2 deletions
|
|
@ -18,7 +18,8 @@ describe("loadOrderIfPresent", () => {
|
|||
|
||||
const testCookieValue = {
|
||||
ShouldResetState: testShouldResetState,
|
||||
ReferralCorrelationId: "xxx"
|
||||
ReferralCorrelationId: "xxx",
|
||||
ReferralNumber: "12345"
|
||||
}
|
||||
|
||||
document.cookie = `${cookieNames.FUNNEL_SESSION_INFO}=${JSON.stringify(testCookieValue)}; path=/; ${cookieHelper.getCookieDomainValue()}`;
|
||||
|
|
@ -33,7 +34,11 @@ describe("loadOrderIfPresent", () => {
|
|||
|
||||
test("ShouldResetState == true => reset store", () => {
|
||||
// Arrange
|
||||
cookieHelper.getFunnelCookie = jest.spyOn(cookieHelper, "getFunnelCookie").mockReturnValueOnce({ ShouldResetState: true, ReferralCorrelationId: "xxx-xxx-xxx" });
|
||||
cookieHelper.getFunnelCookie = jest.spyOn(cookieHelper, "getFunnelCookie").mockReturnValueOnce({
|
||||
ShouldResetState: true,
|
||||
ReferralCorrelationId: "xxx-xxx-xxx",
|
||||
ReferralNumber: "12345"
|
||||
});
|
||||
|
||||
const mockData = {
|
||||
actionList: [{
|
||||
|
|
|
|||
Loading…
Reference in a new issue