UNPKG

next-google-adsense

Version:
21 lines (20 loc) 1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const vitest_1 = require("vitest"); const utils_1 = require("../utils"); (0, vitest_1.describe)("utils", () => { (0, vitest_1.describe)("isPublisherId", () => { (0, vitest_1.it)("should return true for valid publisher IDs", () => { (0, vitest_1.expect)((0, utils_1.isPublisherId)("pub-1234567890123456")).toBe(true); (0, vitest_1.expect)((0, utils_1.isPublisherId)("pub-xxxxxxxxx")).toBe(false); (0, vitest_1.expect)((0, utils_1.isPublisherId)(undefined)).toBe(false); }); }); (0, vitest_1.describe)("isSlotId", () => { (0, vitest_1.it)("should return true for valid slot IDs", () => { (0, vitest_1.expect)((0, utils_1.isSlotId)("1234567890")).toBe(true); (0, vitest_1.expect)((0, utils_1.isSlotId)("xxxxxxxxxx")).toBe(false); (0, vitest_1.expect)((0, utils_1.isSlotId)(undefined)).toBe(false); }); }); });