forked from Lilly-Protocol/lily-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexport-surface.test.ts
More file actions
31 lines (27 loc) · 1.02 KB
/
Copy pathexport-surface.test.ts
File metadata and controls
31 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { describe, it, expect } from 'vitest';
import * as sdk from '../src/index';
describe('export surface', () => {
it('exports LilySdk class', () => {
expect(sdk.LilySdk).toBeDefined();
expect(typeof sdk.LilySdk).toBe('function');
});
it('exports resolveLilySdkConfig function', () => {
expect(sdk.resolveLilySdkConfig).toBeDefined();
expect(typeof sdk.resolveLilySdkConfig).toBe('function');
});
it('exports all error classes', () => {
expect(sdk.LilySdkError).toBeDefined();
expect(sdk.LilyConfigError).toBeDefined();
expect(sdk.LilyApiError).toBeDefined();
expect(sdk.LilyAuthenticationError).toBeDefined();
expect(sdk.LilyTransportError).toBeDefined();
expect(sdk.LilyValidationError).toBeDefined();
});
it('exports all client classes', () => {
expect(sdk.AgentClient).toBeDefined();
expect(sdk.IdentityClient).toBeDefined();
expect(sdk.PaymentClient).toBeDefined();
expect(sdk.SystemClient).toBeDefined();
expect(sdk.WalletClient).toBeDefined();
});
});