Staatsbuergerschaft: Auswahl "staatenlos"
Nur bei der Staatsbuergerschaft (Aufnahme, Daten aendern, Austauschdatei), nicht beim Land der Adresse. Eine staatenlose Person braucht einen Aufenthaltstitel; die Frage danach erscheint wie bei Drittstaaten. Geprueft: lint, tsc, Tests, Waechter.
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { brauchtAufenthaltstitel, FREIZUEGIGKEIT, UN_COUNTRIES } from "@/lib/countries";
|
||||
import { brauchtAufenthaltstitel, FREIZUEGIGKEIT, STAATENLOS, STAATSBUERGERSCHAFTEN, UN_COUNTRIES } from "@/lib/countries";
|
||||
|
||||
describe("STAATSBUERGERSCHAFTEN", () => {
|
||||
it("kennt staatenlos, das Land der Adresse nicht", () => {
|
||||
expect(STAATSBUERGERSCHAFTEN).toContain("staatenlos");
|
||||
expect(UN_COUNTRIES).not.toContain("staatenlos");
|
||||
});
|
||||
});
|
||||
|
||||
// Wer keinen Aufenthaltstitel braucht, soll auch nicht danach gefragt werden.
|
||||
// Die Liste entscheidet darüber, ob die Felder im Formular überhaupt
|
||||
@@ -53,6 +60,10 @@ describe("brauchtAufenthaltstitel", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("bejaht bei staatenlos", () => {
|
||||
expect(brauchtAufenthaltstitel(STAATENLOS)).toBe(true);
|
||||
});
|
||||
|
||||
it("stört sich nicht an Leerzeichen am Rand", () => {
|
||||
expect(brauchtAufenthaltstitel(" Österreich ")).toBe(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user