Repository navigation
🎵 修复类型检查 #6
cd.yml
on: push
build
1m 15s
create-release
0s
deploy-pages
Annotations
10 errors
|
[unit] src/lib/crypto/encryption.test.ts > encryption > verifyPassword > returns false for wrong password:
src/lib/crypto/encryption.ts#L46
TypeError: Failed to normalize algorithm: 'salt' of 'Pbkdf2Params' (passed algorithm) is not instance of ArrayBuffer, Buffer, TypedArray, or DataView.
❯ deriveKey src/lib/crypto/encryption.ts:46:24
❯ encrypt src/lib/crypto/encryption.ts:78:15
❯ src/lib/crypto/encryption.test.ts:76:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' }
|
|
[unit] src/lib/crypto/encryption.test.ts > encryption > verifyPassword > returns true for correct password:
src/lib/crypto/encryption.ts#L46
TypeError: Failed to normalize algorithm: 'salt' of 'Pbkdf2Params' (passed algorithm) is not instance of ArrayBuffer, Buffer, TypedArray, or DataView.
❯ deriveKey src/lib/crypto/encryption.ts:46:24
❯ encrypt src/lib/crypto/encryption.ts:78:15
❯ src/lib/crypto/encryption.test.ts:69:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' }
|
|
[unit] src/lib/crypto/encryption.test.ts > encryption > decrypt > handles long text:
src/lib/crypto/encryption.ts#L46
TypeError: Failed to normalize algorithm: 'salt' of 'Pbkdf2Params' (passed algorithm) is not instance of ArrayBuffer, Buffer, TypedArray, or DataView.
❯ deriveKey src/lib/crypto/encryption.ts:46:24
❯ encrypt src/lib/crypto/encryption.ts:78:15
❯ src/lib/crypto/encryption.test.ts:60:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' }
|
|
[unit] src/lib/crypto/encryption.test.ts > encryption > decrypt > handles empty string:
src/lib/crypto/encryption.ts#L46
TypeError: Failed to normalize algorithm: 'salt' of 'Pbkdf2Params' (passed algorithm) is not instance of ArrayBuffer, Buffer, TypedArray, or DataView.
❯ deriveKey src/lib/crypto/encryption.ts:46:24
❯ encrypt src/lib/crypto/encryption.ts:78:15
❯ src/lib/crypto/encryption.test.ts:52:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' }
|
|
[unit] src/lib/crypto/encryption.test.ts > encryption > decrypt > handles unicode text:
src/lib/crypto/encryption.ts#L46
TypeError: Failed to normalize algorithm: 'salt' of 'Pbkdf2Params' (passed algorithm) is not instance of ArrayBuffer, Buffer, TypedArray, or DataView.
❯ deriveKey src/lib/crypto/encryption.ts:46:24
❯ encrypt src/lib/crypto/encryption.ts:78:15
❯ src/lib/crypto/encryption.test.ts:45:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' }
|
|
[unit] src/lib/crypto/encryption.test.ts > encryption > decrypt > throws error with wrong password:
src/lib/crypto/encryption.ts#L46
TypeError: Failed to normalize algorithm: 'salt' of 'Pbkdf2Params' (passed algorithm) is not instance of ArrayBuffer, Buffer, TypedArray, or DataView.
❯ deriveKey src/lib/crypto/encryption.ts:46:24
❯ encrypt src/lib/crypto/encryption.ts:78:15
❯ src/lib/crypto/encryption.test.ts:38:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' }
|
|
[unit] src/lib/crypto/encryption.test.ts > encryption > decrypt > decrypts data correctly with correct password:
src/lib/crypto/encryption.ts#L46
TypeError: Failed to normalize algorithm: 'salt' of 'Pbkdf2Params' (passed algorithm) is not instance of ArrayBuffer, Buffer, TypedArray, or DataView.
❯ deriveKey src/lib/crypto/encryption.ts:46:24
❯ encrypt src/lib/crypto/encryption.ts:78:15
❯ src/lib/crypto/encryption.test.ts:31:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' }
|
|
[unit] src/lib/crypto/encryption.test.ts > encryption > encrypt > produces different ciphertext each time (random salt/iv):
src/lib/crypto/encryption.ts#L46
TypeError: Failed to normalize algorithm: 'salt' of 'Pbkdf2Params' (passed algorithm) is not instance of ArrayBuffer, Buffer, TypedArray, or DataView.
❯ deriveKey src/lib/crypto/encryption.ts:46:24
❯ encrypt src/lib/crypto/encryption.ts:78:15
❯ src/lib/crypto/encryption.test.ts:20:23
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' }
|
|
[unit] src/lib/crypto/encryption.test.ts > encryption > encrypt > returns encrypted data with all required fields:
src/lib/crypto/encryption.ts#L46
TypeError: Failed to normalize algorithm: 'salt' of 'Pbkdf2Params' (passed algorithm) is not instance of ArrayBuffer, Buffer, TypedArray, or DataView.
❯ deriveKey src/lib/crypto/encryption.ts:46:24
❯ encrypt src/lib/crypto/encryption.ts:78:15
❯ src/lib/crypto/encryption.test.ts:10:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' }
|
|
[unit] src/components/wallet/wallet-edit-sheet.test.tsx > WalletEditSheet > shows password confirm when delete is clicked:
src/components/wallet/wallet-edit-sheet.test.tsx#L182
TestingLibraryElementError: Unable to find an element with the text: 此操作无法撤销. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body
style="overflow: hidden;"
>
<div>
<div
class="fixed inset-0 z-50"
>
<div
aria-hidden="true"
class="absolute inset-0 bg-black/50 transition-opacity animate-fade-in"
/>
<div
aria-label="删除钱包"
aria-modal="true"
class="absolute bottom-0 left-0 right-0 bg-background rounded-t-2xl animate-slide-in-bottom safe-area-inset-bottom max-h-[85vh]"
role="dialog"
>
<div
class="flex justify-center py-3"
>
<div
class="w-10 h-1 rounded-full bg-muted"
/>
</div>
<div
class="px-4 pb-4 border-b border-border"
>
<h2
class="text-lg font-semibold text-center"
>
删除钱包
</h2>
</div>
<div
class="overflow-auto max-h-[calc(85vh-60px)]"
>
<form
class="space-y-6 p-4"
>
<p
class="text-center text-muted-foreground"
>
⚠️ 此操作无法撤销
请输入密码以确认删除钱包 "Test Wallet"
</p>
<div
class="space-y-2"
>
<div
class="space-y-2 @container"
>
<div
class="relative"
>
<input
class="flex h-11 w-full rounded-lg border border-input bg-background px-3 py-2 pr-10 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"
placeholder="请输入密码"
type="password"
value=""
/>
<button
aria-label="显示密码"
class="absolute right-3 top-1/2 -translate-y-1/2 text-muted hover:text-foreground transition-colors"
tabindex="-1"
type="button"
>
<svg
aria-hidden="true"
class="lucide lucide-eye size-5"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"
/>
<circle
cx="12"
cy="12"
r="3"
/>
</svg>
</button>
</div>
</div>
</div>
<div
class="space-y-3"
>
<button
class="w-full rounded-full py-3 font-medium text-white transition-colors bg-primary hover:bg-primary/90 disabled:cursor-not-allowed disabled:opacity-50"
disabled=""
type="submit"
>
确认
</button>
<button
class="w-full py-2 text-center text-sm text-muted-foreground hover:text-foreground"
type="button"
>
取消
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
❯
|