UNPKG

wikirefs-spec

Version:

A collection of tests to validate markdown parser output against the wikirefs spec

30 lines (29 loc) 1.22 kB
interface TestFileData { filename: string; href?: string; title?: string; content?: string; media?: string; } interface WikiRefTestCase { descr: string; // test description error?: boolean; // test reflects an error state opts?: any; // options mkdn: string; // markdown input html: string; // html output } declare const wikiEmbedCases: WikiRefTestCase[]; declare const wikiAttrCases: WikiRefTestCase[]; declare const wikiLinkCases: WikiRefTestCase[]; declare const wikiRefCases: WikiRefTestCase[]; // example 'index' // note: 'title' ~= 'html-text' declare const fileDataMap: TestFileData[]; declare const wikiAttrUnprefixedCases: WikiRefTestCase[]; declare const wikiAttrPrefixedCases: WikiRefTestCase[]; declare const wikiAttrMixedCases: WikiRefTestCase[]; declare const wikiLinkTypedCases: WikiRefTestCase[]; declare const wikiLinkUntypedCases: WikiRefTestCase[]; declare const wikiLinkMixedCases: WikiRefTestCase[]; export { fileDataMap, wikiAttrUnprefixedCases, wikiAttrPrefixedCases, wikiAttrMixedCases, wikiLinkTypedCases, wikiLinkUntypedCases, wikiLinkMixedCases, wikiRefCases, wikiAttrCases, wikiLinkCases, wikiEmbedCases }; export type { WikiRefTestCase, TestFileData };