From 86671e0df784a45f07d89ba07c85ccec13368ca1 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 12 May 2016 13:23:07 -0700 Subject: [PATCH] test: refactor doctool tests Adjust style in doctool tests to conform with predominant style of the rest of the project. The biggest changes are: * Replace string concatenation with `path.join()` * Remove unnecessary quotes from property names PR-URL: https://github.com/nodejs/node/pull/6719 Reviewed-By: James M Snell --- test/doctool/test-doctool-html.js | 13 +-- test/doctool/test-doctool-json.js | 164 +++++++++++++++--------------- 2 files changed, 91 insertions(+), 86 deletions(-) diff --git a/test/doctool/test-doctool-html.js b/test/doctool/test-doctool-html.js index 1eb96751cc0adb..a8476b7234c9fa 100644 --- a/test/doctool/test-doctool-html.js +++ b/test/doctool/test-doctool-html.js @@ -3,6 +3,7 @@ const common = require('../common'); const assert = require('assert'); const fs = require('fs'); +const path = require('path'); const html = require('../../tools/doc/html.js'); @@ -13,13 +14,13 @@ const html = require('../../tools/doc/html.js'); // have an html parser. const testData = [ { - 'file': common.fixturesDir + '/sample_document.md', - 'html': '
  1. fish
  2. fish

  3. Redfish

  4. ' + + file: path.join(common.fixturesDir, 'sample_document.md'), + html: '
    1. fish
    2. fish

    3. Redfish

    4. ' + '
    5. Bluefish
    ' }, { - 'file': common.fixturesDir + '/order_of_end_tags_5873.md', - 'html': '

    ClassMethod: Buffer.from(array) ' + + file: path.join(common.fixturesDir, 'order_of_end_tags_5873.md'), + html: '

    ClassMethod: Buffer.from(array) ' + '#