diff options
author | Miguel Angel Asencio Hurtado <maasencioh@gmail.com> | 2017-08-09 19:29:40 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2017-08-27 21:14:34 -0300 |
commit | 9a5c3cf185c6e9c4fb9264cf8e61a74a5d697ff9 (patch) | |
tree | a053ea27d73238b5b50f88503925b90aacf04537 /test/doctool/test-doctool-json.js | |
parent | 53c5bf546e8e52db5b11287ab3bf1375819b369b (diff) | |
download | android-node-v8-9a5c3cf185c6e9c4fb9264cf8e61a74a5d697ff9.tar.gz android-node-v8-9a5c3cf185c6e9c4fb9264cf8e61a74a5d697ff9.tar.bz2 android-node-v8-9a5c3cf185c6e9c4fb9264cf8e61a74a5d697ff9.zip |
test: continue normalizing fixtures use
PR-URL: https://github.com/nodejs/node/pull/14716
Refs: https://github.com/nodejs/node/pull/14332
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Diffstat (limited to 'test/doctool/test-doctool-json.js')
-rw-r--r-- | test/doctool/test-doctool-json.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/doctool/test-doctool-json.js b/test/doctool/test-doctool-json.js index 4a4d3a895c..1be086c3a6 100644 --- a/test/doctool/test-doctool-json.js +++ b/test/doctool/test-doctool-json.js @@ -10,7 +10,7 @@ try { const assert = require('assert'); const fs = require('fs'); -const path = require('path'); +const fixtures = require('../common/fixtures'); const json = require('../../tools/doc/json.js'); // Outputs valid json with the expected fields when given simple markdown @@ -19,7 +19,7 @@ const json = require('../../tools/doc/json.js'); // The json property is some json which will be generated by the doctool. const testData = [ { - file: path.join(common.fixturesDir, 'sample_document.md'), + file: fixtures.path('sample_document.md'), json: { source: 'foo', modules: [{ @@ -39,7 +39,7 @@ const testData = [ } }, { - file: path.join(common.fixturesDir, 'order_of_end_tags_5873.md'), + file: fixtures.path('order_of_end_tags_5873.md'), json: { source: 'foo', modules: [{ @@ -76,7 +76,7 @@ const testData = [ } }, { - file: path.join(common.fixturesDir, 'doc_with_yaml.md'), + file: fixtures.path('doc_with_yaml.md'), json: { source: 'foo', modules: [ |