french-ssn
Version:
🇫🇷 A parser / validator for French Social Security Number
26 lines • 772 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const makeSSN_1 = __importDefault(require("./makeSSN"));
it("auto fills control key", () => {
expect((0, makeSSN_1.default)({
gender: 2,
year: 78,
month: 5,
place: "69339",
rank: "089",
})).toBe("278056933908941");
});
it("allows custom control key (for tests)", () => {
expect((0, makeSSN_1.default)({
gender: 2,
year: 78,
month: 5,
place: "69339",
rank: "089",
controlKey: 23,
})).toBe("278056933908923");
});
//# sourceMappingURL=makeSSN.test.js.map