fix: add test

This commit is contained in:
2025-11-17 20:01:44 +08:00
parent e81a475bba
commit 572f793061
4 changed files with 32 additions and 1 deletions

10
agent/test/get-cf-list.ts Normal file
View File

@@ -0,0 +1,10 @@
import { CloudflareDDNS } from "@agent/ddns/cloudflare/index.ts";
import { config } from "./common.ts";
const cf = new CloudflareDDNS();
if (config) {
const res = await cf.getList(config.zone_id, config.api_token);
console.log('Cloudflare DNS Records List:', res);
} else {
console.log('No configuration found.');
}