UNPKG

french-ssn

Version:

🇫🇷 A parser / validator for French Social Security Number

13 lines • 639 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const checkControlKey_1 = __importDefault(require("./checkControlKey")); it("has a correct control key", () => { expect(() => (0, checkControlKey_1.default)("2780569339089", "23")).toThrow("Control key does not match (expected 41)"); }); it("accepts number ending in 98", () => { expect(() => (0, checkControlKey_1.default)("2780569339089", "98")).not.toThrow(); }); //# sourceMappingURL=checkControlKey.test.js.map