From a03e15fc30ef2dd4c2b487ef951874efb8522efe Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Wed, 23 Apr 2025 16:22:29 +0800 Subject: [PATCH] fix ci --- domains/data.json | 2 +- domains/raw.json | 2 +- tests/records.test.js | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/domains/data.json b/domains/data.json index 708e00ecc..f9750e927 100644 --- a/domains/data.json +++ b/domains/data.json @@ -4,7 +4,7 @@ "email": "admin@is-a.dev" }, "record": { - "CNAME": "is-a.dev" + "CNAME": "is-a-dev.github.io" }, "proxied": true } diff --git a/domains/raw.json b/domains/raw.json index b8d2e61c5..1a39a92d6 100644 --- a/domains/raw.json +++ b/domains/raw.json @@ -4,6 +4,6 @@ "email": "admin@is-a.dev" }, "record": { - "CNAME": "is-a.dev" + "CNAME": "is-a-dev.github.io" } } diff --git a/tests/records.test.js b/tests/records.test.js index 647d08a15..037d5670f 100644 --- a/tests/records.test.js +++ b/tests/records.test.js @@ -140,9 +140,7 @@ function validateRecordValues(t, data, file) { if (key === "CNAME") { t.true(isValidHostname(value), `${file}: Invalid hostname for ${key}`); t.true(value !== `${subdomain}.is-a.dev`, `${file}: ${key} cannot point to itself`); - if (data.owner.username.toLowerCase() !== "is-a-dev") { - t.true(value !== "is-a.dev", `${file}: ${key} cannot point to is-a.dev`); - } + t.true(value !== "is-a.dev", `${file}: ${key} cannot point to is-a.dev`); } else if (key === "URL") { t.true( value.startsWith("http://") || value.startsWith("https://"),