french-ssn
Version:
🇫🇷 A parser / validator for French Social Security Number
21 lines • 746 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const makeMonth_1 = __importDefault(require("./makeMonth"));
it("has possible month of birth", () => {
expect((0, makeMonth_1.default)("45")).toEqual({
unknown: true,
error: "appears to be incorrect",
});
});
it("provides the month of birth", () => {
expect((0, makeMonth_1.default)("03")).toEqual({ index: 3, name: "mars" });
});
it("has unknown month of birth", () => {
expect((0, makeMonth_1.default)("20")).toEqual({
unknown: true,
});
});
//# sourceMappingURL=makeMonth.test.js.map