From c80fe943da295e5659cdf471b035c8b8c9aada34 Mon Sep 17 00:00:00 2001 From: wumingzhinu Date: Fri, 25 Sep 2026 11:52:19 +0800 Subject: [PATCH] test(db): type cipher producers --- src/backend/internal/model/db_cipher.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/internal/model/db_cipher.test.ts b/src/backend/internal/model/db_cipher.test.ts index fe29d46d..3da5479a 100644 --- a/src/backend/internal/model/db_cipher.test.ts +++ b/src/backend/internal/model/db_cipher.test.ts @@ -10,6 +10,7 @@ import { encryptConfigValue, isSealedCiphertext, resolveDbCipher, + type DbCipher, } from "../../pkg/crypto" import { readCipher } from "./store/backend" import { memoryDriver } from "./store/driver/memory" @@ -176,7 +177,7 @@ test("解密由前缀驱动:任意写入算法都能解开全部版本的密 "v2-secret", await deriveConfigEncryptionKey(SECRET), )) - const producers: Array<[string, string]> = [ + const producers: Array<[DbCipher, string]> = [ ["aes-256-cbc-hmac", "v3-secret"], ["chacha20-poly1305", "v4-secret"], ["des-cbc-hmac", "v5-secret"],