CSR-1886
broken test
This commit is contained in:
parent
e4770742e8
commit
046c00252e
2 changed files with 6 additions and 0 deletions
|
|
@ -912,6 +912,7 @@ export const actions = {
|
||||||
|
|
||||||
validateZip(context, { payload: { zip }, pageNameToLog }) {
|
validateZip(context, { payload: { zip }, pageNameToLog }) {
|
||||||
const damageType = context.getters.damage.isRepair ? "Repair" : "Replace";
|
const damageType = context.getters.damage.isRepair ? "Repair" : "Replace";
|
||||||
|
console.log("dt:" + damageType);
|
||||||
return globalMethods.callHttpClient({
|
return globalMethods.callHttpClient({
|
||||||
methods: endpoints.ValidateZip.method,
|
methods: endpoints.ValidateZip.method,
|
||||||
endpoint: `${endpoints.ValidateZip.url}/${zip}/${damageType}`,
|
endpoint: `${endpoints.ValidateZip.url}/${zip}/${damageType}`,
|
||||||
|
|
|
||||||
|
|
@ -571,6 +571,11 @@ describe("Actions", () => {
|
||||||
it("validateZip action", async () => {
|
it("validateZip action", async () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const context = state;
|
const context = state;
|
||||||
|
context.getters = {
|
||||||
|
damage: {
|
||||||
|
isRepair: "false",
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
globalMethods.callHttpClient.mockImplementation(() => {
|
globalMethods.callHttpClient.mockImplementation(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue