Skip to content

Commit 2364613

Browse files
committed
test: update tsky.test.ts
1 parent 1ca4827 commit 2364613

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/client/src/tsky/tsky.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, it } from 'vitest';
1+
import { describe, expect, inject, it } from 'vitest';
22

33
import type { AtpSessionData } from '@atcute/client';
44

@@ -11,7 +11,7 @@ describe('createAgent', () => {
1111
identifier: 'alice.test',
1212
password: 'password',
1313
},
14-
{ service: TEST_NETWORK.pds.url },
14+
{ service: inject('testPdsUrl') },
1515
);
1616
expect(agent.session).not.toBe(undefined);
1717
expect(agent.session?.handle).toBe('alice.test');
@@ -26,7 +26,7 @@ describe('createAgent', () => {
2626
identifier: 'alice.test',
2727
password: 'password',
2828
},
29-
{ service: TEST_NETWORK.pds.url },
29+
{ service: inject('testPdsUrl') },
3030
);
3131
expect(agent.session).toBeDefined();
3232
session = agent.session as AtpSessionData;
@@ -35,7 +35,7 @@ describe('createAgent', () => {
3535
{
3636
const agent = await createAgent(
3737
{ session },
38-
{ service: TEST_NETWORK.pds.url },
38+
{ service: inject('testPdsUrl') },
3939
);
4040
expect(agent.session).not.toBe(undefined);
4141
expect(agent.session?.handle).toBe('alice.test');

0 commit comments

Comments
 (0)