1111const assert = require ( 'assert' ) ;
1212const fs = require ( 'fs' ) ;
1313const path = require ( 'path' ) ;
14+ const fixtures = require ( '../common/fixtures' ) ;
1415const processIncludes = require ( '../../tools/doc/preprocess.js' ) ;
1516const html = require ( '../../tools/doc/html.js' ) ;
1617
@@ -21,12 +22,12 @@ const html = require('../../tools/doc/html.js');
2122// have an html parser.
2223const testData = [
2324 {
24- file : path . join ( common . fixturesDir , 'sample_document.md' ) ,
25+ file : fixtures . path ( 'sample_document.md' ) ,
2526 html : '<ol><li>fish</li><li><p>fish</p></li><li><p>Redfish</p></li>' +
2627 '<li>Bluefish</li></ol>'
2728 } ,
2829 {
29- file : path . join ( common . fixturesDir , 'order_of_end_tags_5873.md' ) ,
30+ file : fixtures . path ( 'order_of_end_tags_5873.md' ) ,
3031 html : '<h3>ClassMethod: Buffer.from(array) <span> ' +
3132 '<a class="mark" href="#foo_class_method_buffer_from_array" ' +
3233 'id="foo_class_method_buffer_from_array">#</a> </span> </h3><div' +
@@ -36,7 +37,7 @@ const testData = [
3637 '</ul></div>'
3738 } ,
3839 {
39- file : path . join ( common . fixturesDir , 'doc_with_yaml.md' ) ,
40+ file : fixtures . path ( 'doc_with_yaml.md' ) ,
4041 html : '<h1>Sample Markdown with YAML info' +
4142 '<span><a class="mark" href="#foo_sample_markdown_with_yaml_info" ' +
4243 ' id="foo_sample_markdown_with_yaml_info">#</a></span></h1>' +
@@ -72,7 +73,7 @@ const testData = [
7273 '</p>'
7374 } ,
7475 {
75- file : path . join ( common . fixturesDir , 'doc_with_includes.md' ) ,
76+ file : fixtures . path ( 'doc_with_includes.md' ) ,
7677 html : '<!-- [start-include:doc_inc_1.md] -->' +
7778 '<p>Look <a href="doc_inc_2.html#doc_inc_2_foobar">here</a>!</p>' +
7879 '<!-- [end-include:doc_inc_1.md] -->' +
@@ -83,7 +84,7 @@ const testData = [
8384 '<!-- [end-include:doc_inc_2.md] -->'
8485 } ,
8586 {
86- file : path . join ( common . fixturesDir , 'sample_document.md' ) ,
87+ file : fixtures . path ( 'sample_document.md' ) ,
8788 html : '<ol><li>fish</li><li><p>fish</p></li><li><p>Redfish</p></li>' +
8889 '<li>Bluefish</li></ol>' ,
8990 analyticsId : 'UA-67020396-1'
0 commit comments