Skip to content

Commit f68c814

Browse files
committed
fix tests
1 parent 1784683 commit f68c814

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
import { CredentialManager } from '@atcute/client';
22
import { describe, expect, it } from 'vitest';
3-
import { Tsky } from './index';
3+
import { Tsky } from '~/index';
4+
5+
const formatSecret = (secret: string | undefined) =>
6+
secret?.replace(/^tsky /g, '').trim() ?? '';
47

58
const env = process.env;
69
const TEST_CREDENTIALS = {
710
alice: {
811
handle: 'alice.tsky.dev',
912
did: 'did:plc:jguhdmnjclquqf5lsvkyxqy3',
10-
appPassword: env.ALICE_APP_PASSWORD ?? '',
13+
appPassword: formatSecret(env.ALICE_APP_PASSWORD),
1114
},
1215
bob: {
1316
handle: 'bob.tsky.dev',
1417
did: 'did:plc:2ig7akkyfq256j42uxvc4g2h',
15-
appPassword: env.BOB_APP_PASSWORD ?? '',
18+
appPassword: formatSecret(env.BOB_APP_PASSWORD),
1619
},
1720
};
1821

@@ -26,7 +29,7 @@ async function getAliceTsky() {
2629
return new Tsky(manager);
2730
}
2831

29-
describe('tSky', () => {
32+
describe('bsky', () => {
3033
it('.profile()', async () => {
3134
const tsky = await getAliceTsky();
3235
const profile = await tsky.bsky.profile(TEST_CREDENTIALS.alice.did);

packages/client/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"noImplicitOverride": true,
1919
"noImplicitReturns": true,
2020
"noUnusedLocals": true,
21+
"noImplicitAny": true,
2122
"noUnusedParameters": true,
2223
"declaration": false,
2324
"noEmit": true,

0 commit comments

Comments
 (0)