0
 setCartCookie(cookieVal: any, expiresInDays: any, countryId: any) {
        $.cookie('cart-' + this.getStoreId(countryId), cookieVal, {
            path: "/",
            expires: expiresInDays ? expiresInDays : 365 * 10 //Ifm expiresInDays is not mentioned then by default 10 years
        });
    }

I want expiresInDays value to be assigned when it becomes null please help me on this

how to write test case the above scenario

0 Answers0