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