11
11
const assert = require ( 'assert' ) ;
12
12
const fs = require ( 'fs' ) ;
13
13
const path = require ( 'path' ) ;
14
+ const fixtures = require ( '../common/fixtures' ) ;
14
15
const processIncludes = require ( '../../tools/doc/preprocess.js' ) ;
15
16
const html = require ( '../../tools/doc/html.js' ) ;
16
17
@@ -21,12 +22,12 @@ const html = require('../../tools/doc/html.js');
21
22
// have an html parser.
22
23
const testData = [
23
24
{
24
- file : path . join ( common . fixturesDir , 'sample_document.md' ) ,
25
+ file : fixtures . path ( 'sample_document.md' ) ,
25
26
html : '<ol><li>fish</li><li><p>fish</p></li><li><p>Redfish</p></li>' +
26
27
'<li>Bluefish</li></ol>'
27
28
} ,
28
29
{
29
- file : path . join ( common . fixturesDir , 'order_of_end_tags_5873.md' ) ,
30
+ file : fixtures . path ( 'order_of_end_tags_5873.md' ) ,
30
31
html : '<h3>ClassMethod: Buffer.from(array) <span> ' +
31
32
'<a class="mark" href="#foo_class_method_buffer_from_array" ' +
32
33
'id="foo_class_method_buffer_from_array">#</a> </span> </h3><div' +
@@ -36,7 +37,7 @@ const testData = [
36
37
'</ul></div>'
37
38
} ,
38
39
{
39
- file : path . join ( common . fixturesDir , 'doc_with_yaml.md' ) ,
40
+ file : fixtures . path ( 'doc_with_yaml.md' ) ,
40
41
html : '<h1>Sample Markdown with YAML info' +
41
42
'<span><a class="mark" href="#foo_sample_markdown_with_yaml_info" ' +
42
43
' id="foo_sample_markdown_with_yaml_info">#</a></span></h1>' +
@@ -72,7 +73,7 @@ const testData = [
72
73
'</p>'
73
74
} ,
74
75
{
75
- file : path . join ( common . fixturesDir , 'doc_with_includes.md' ) ,
76
+ file : fixtures . path ( 'doc_with_includes.md' ) ,
76
77
html : '<!-- [start-include:doc_inc_1.md] -->' +
77
78
'<p>Look <a href="doc_inc_2.html#doc_inc_2_foobar">here</a>!</p>' +
78
79
'<!-- [end-include:doc_inc_1.md] -->' +
@@ -83,7 +84,7 @@ const testData = [
83
84
'<!-- [end-include:doc_inc_2.md] -->'
84
85
} ,
85
86
{
86
- file : path . join ( common . fixturesDir , 'sample_document.md' ) ,
87
+ file : fixtures . path ( 'sample_document.md' ) ,
87
88
html : '<ol><li>fish</li><li><p>fish</p></li><li><p>Redfish</p></li>' +
88
89
'<li>Bluefish</li></ol>' ,
89
90
analyticsId : 'UA-67020396-1'
0 commit comments