We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ee43bc commit 9a34f78Copy full SHA for 9a34f78
packages/client/src/bsky/index.test.ts
@@ -2,8 +2,13 @@ import { CredentialManager } from '@atcute/client';
2
import { describe, expect, it } from 'vitest';
3
import { Tsky } from '~/index';
4
5
-const formatSecret = (secret: string | undefined) =>
6
- secret?.replace(/^tsky /g, '').trim() ?? '';
+const formatSecret = (secret: string | undefined) => {
+ if (!secret) {
7
+ throw new Error('Secret is required');
8
+ }
9
+
10
+ return secret.replace(/^tsky /g, '').trim();
11
+};
12
13
const env = process.env;
14
const TEST_CREDENTIALS = {
0 commit comments