generated from template/slidev-template
fix: add test
This commit is contained in:
13
agent/test/common.ts
Normal file
13
agent/test/common.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { createStorage } from "unstorage";
|
||||
import fsDriver from "unstorage/drivers/fs";
|
||||
import { CloudflareDDNS } from "@agent/ddns/cloudflare/index.ts";
|
||||
import { CloudflareConfig } from "@agent/task.ts";
|
||||
const storage = createStorage({
|
||||
driver: fsDriver({
|
||||
base: process.cwd() + '/storage/ddns-agent'
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
export const config = await storage.getItem<CloudflareConfig>('cloudflare.json');
|
||||
|
||||
Reference in New Issue
Block a user