-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into pdf-hinweisblatt
- Loading branch information
Showing
39 changed files
with
830 additions
and
500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import { beratungshilfeAbgabe } from "~/flows/beratungshilfeFormular/abgabe/context"; | ||
import { beratungshilfeAnwaltlicheVertretung } from "./anwaltlicheVertretung/context"; | ||
import { beratungshilfeFinanzielleAngaben } from "./finanzielleAngaben/context"; | ||
import { beratungshilfeGrundvoraussetzungen } from "./grundvoraussetzung/context"; | ||
import { beratungshilfePersoenlicheDaten } from "./persoenlicheDaten/context"; | ||
import { beratungshilfeRechtsproblem } from "./rechtsproblem/context"; | ||
import { abgabeContext } from "../shared/abgabe/context"; | ||
|
||
export const beratungshilfeFormularContext = { | ||
...beratungshilfeAnwaltlicheVertretung, | ||
...beratungshilfeGrundvoraussetzungen, | ||
...beratungshilfeRechtsproblem, | ||
...beratungshilfeFinanzielleAngaben, | ||
...beratungshilfePersoenlicheDaten, | ||
...beratungshilfeAbgabe, | ||
...abgabeContext, | ||
} as const; |
64 changes: 0 additions & 64 deletions
64
...ws/beratungshilfeFormular/finanzielleAngaben/__test__/eigentumZusammenfassungDone.test.ts
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
app/flows/beratungshilfeFormular/finanzielleAngaben/__test__/navStates.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
app/flows/beratungshilfeFormular/finanzielleAngaben/__test__/navStatesEigentum.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...ngshilfeFormular/finanzielleAngaben/__test__/navStatesEigentumZusammenfassungDone.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import * as navStates from "~/flows/shared/finanzielleAngaben/navStates"; | ||
import { eigentumZusammenfassungDone } from "../navStatesEigentumZusammenfassungDone"; | ||
|
||
describe("eigentumZusammenfassungDone", () => { | ||
it("passes with all sub-flows done", () => { | ||
vi.spyOn(navStates, "bankKontoDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "geldanlagenDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "grundeigentumDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "wertsachenDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "kraftfahrzeugeDone").mockReturnValue(true); | ||
|
||
expect(eigentumZusammenfassungDone({ context: {} })).toBeTruthy(); | ||
}); | ||
|
||
it("fails with bankkonto not done", () => { | ||
vi.spyOn(navStates, "bankKontoDone").mockReturnValue(false); | ||
vi.spyOn(navStates, "geldanlagenDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "grundeigentumDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "kraftfahrzeugeDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "wertsachenDone").mockReturnValue(true); | ||
|
||
expect(eigentumZusammenfassungDone({ context: {} })).toBeFalsy(); | ||
}); | ||
|
||
it("fails with geldanlagen not done", () => { | ||
vi.spyOn(navStates, "bankKontoDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "geldanlagenDone").mockReturnValue(false); | ||
vi.spyOn(navStates, "grundeigentumDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "kraftfahrzeugeDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "wertsachenDone").mockReturnValue(true); | ||
|
||
expect(eigentumZusammenfassungDone({ context: {} })).toBeFalsy(); | ||
}); | ||
|
||
it("fails with grundeigentum not done", () => { | ||
vi.spyOn(navStates, "bankKontoDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "geldanlagenDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "grundeigentumDone").mockReturnValue(false); | ||
vi.spyOn(navStates, "kraftfahrzeugeDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "wertsachenDone").mockReturnValue(true); | ||
|
||
expect(eigentumZusammenfassungDone({ context: {} })).toBeFalsy(); | ||
}); | ||
|
||
it("fails with kraftfahrzeug not done", () => { | ||
vi.spyOn(navStates, "bankKontoDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "geldanlagenDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "grundeigentumDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "kraftfahrzeugeDone").mockReturnValue(false); | ||
vi.spyOn(navStates, "wertsachenDone").mockReturnValue(true); | ||
|
||
expect(eigentumZusammenfassungDone({ context: {} })).toBeFalsy(); | ||
}); | ||
|
||
it("fails with wertsachen not done", () => { | ||
vi.spyOn(navStates, "bankKontoDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "geldanlagenDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "grundeigentumDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "kraftfahrzeugeDone").mockReturnValue(true); | ||
vi.spyOn(navStates, "wertsachenDone").mockReturnValue(false); | ||
|
||
expect(eigentumZusammenfassungDone({ context: {} })).toBeFalsy(); | ||
}); | ||
}); |
173 changes: 12 additions & 161 deletions
173
app/flows/beratungshilfeFormular/finanzielleAngaben/context.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
app/flows/beratungshilfeFormular/finanzielleAngaben/eigentumZusammenfassungDone.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.