broken test
This commit is contained in:
CarlNation 2024-01-05 07:03:30 -05:00
parent e4770742e8
commit 046c00252e
2 changed files with 6 additions and 0 deletions

View file

@ -912,6 +912,7 @@ export const actions = {
validateZip(context, { payload: { zip }, pageNameToLog }) {
const damageType = context.getters.damage.isRepair ? "Repair" : "Replace";
console.log("dt:" + damageType);
return globalMethods.callHttpClient({
methods: endpoints.ValidateZip.method,
endpoint: `${endpoints.ValidateZip.url}/${zip}/${damageType}`,

View file

@ -571,6 +571,11 @@ describe("Actions", () => {
it("validateZip action", async () => {
// Arrange
const context = state;
context.getters = {
damage: {
isRepair: "false",
}
};
// Act
globalMethods.callHttpClient.mockImplementation(() => {