mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
Add tags to database
This commit is contained in:
@@ -51,5 +51,8 @@ Deno.test("DbTest", async () => {
|
||||
db.add_pmeta(pmeta);
|
||||
assertEquals(pmeta, db.get_pmeta_by_token(pmeta.gid, pmeta.token));
|
||||
assertEquals(pmeta, db.get_pmeta_by_index(pmeta.gid, pmeta.index));
|
||||
const tags = new Set(["std", "df2", "ef3"]);
|
||||
await db.add_gtag(1, tags);
|
||||
assertEquals(tags, db.get_gtags(1));
|
||||
db.close();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user