initialize interfaces package
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { tap, expect } from '@git.zone/tstest/tapbundle';
|
||||
|
||||
import { data, request, tags } from '../ts/index.js';
|
||||
|
||||
tap.test('exports data contracts', async () => {
|
||||
const organization: data.IOrganization = {
|
||||
id: 'org-test',
|
||||
data: {
|
||||
name: 'Test Org',
|
||||
slug: 'test-org',
|
||||
billingPlanId: 'plan_free',
|
||||
roleIds: [],
|
||||
},
|
||||
};
|
||||
|
||||
expect(organization.data.slug).toEqual('test-org');
|
||||
});
|
||||
|
||||
tap.test('exports request contracts', async () => {
|
||||
const methodName: request.IReq_RefreshJwt['method'] = 'refreshJwt';
|
||||
expect(methodName).toEqual('refreshJwt');
|
||||
});
|
||||
|
||||
tap.test('exports tags namespace', async () => {
|
||||
expect(tags).toBeTruthy();
|
||||
});
|
||||
|
||||
export default tap.start();
|
||||
Reference in New Issue
Block a user