29 lines
695 B
TypeScript
29 lines
695 B
TypeScript
|
|
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();
|