mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-24 15:05:14 +00:00
14 lines
333 B
TypeScript
14 lines
333 B
TypeScript
/**
|
|
* Unit testing TypeScript types.
|
|
* with https://github.com/SamVerschueren/tsd
|
|
*/
|
|
|
|
import { expectType } from 'tsd';
|
|
import { NodeType, MfmUrl } from '../src';
|
|
|
|
describe('#NodeType', () => {
|
|
test('returns node that has sprcified type', () => {
|
|
const x = null as unknown as NodeType<'url'>;
|
|
expectType<MfmUrl>(x);
|
|
});
|
|
});
|