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 }) {
|
||||
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}`,
|
||||
|
|
|
|||
|
|
@ -571,6 +571,11 @@ describe("Actions", () => {
|
|||
it("validateZip action", async () => {
|
||||
// Arrange
|
||||
const context = state;
|
||||
context.getters = {
|
||||
damage: {
|
||||
isRepair: "false",
|
||||
}
|
||||
};
|
||||
|
||||
// Act
|
||||
globalMethods.callHttpClient.mockImplementation(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue