| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -74,7 +74,7 @@ const testData = [ | |||
| 74 | 74 | }, | |
| 75 | 75 | ]; | |
| 76 | 76 | ||
| 77 | - testData.forEach(function(item) { | ||
| 77 | + testData.forEach((item) => { | ||
| 78 | 78 | // Normalize expected data by stripping whitespace | |
| 79 | 79 | const expected = item.html.replace(/\s/g, ''); | |
| 80 | 80 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,7 +18,7 @@ const json = require('../../tools/doc/json.js'); | |||
| 18 | 18 | // Test data is a list of objects with two properties. | |
| 19 | 19 | // The file property is the file path. | |
| 20 | 20 | // The json property is some json which will be generated by the doctool. | |
| 21 | - var testData = [ | ||
| 21 | + const testData = [ | ||
| 22 | 22 | { | |
| 23 | 23 | file: path.join(common.fixturesDir, 'sample_document.md'), | |
| 24 | 24 | json: { | |
@@ -136,10 +136,10 @@ var testData = [ | |||
| 136 | 136 | } | |
| 137 | 137 | ]; | |
| 138 | 138 | ||
| 139 | - testData.forEach(function(item) { | ||
| 140 | - fs.readFile(item.file, 'utf8', common.mustCall(function(err, input) { | ||
| 139 | + testData.forEach((item) => { | ||
| 140 | + fs.readFile(item.file, 'utf8', common.mustCall((err, input) => { | ||
| 141 | 141 | assert.ifError(err); | |
| 142 | - json(input, 'foo', common.mustCall(function(err, output) { | ||
| 142 | + json(input, 'foo', common.mustCall((err, output) => { | ||
| 143 | 143 | assert.ifError(err); | |
| 144 | 144 | assert.deepStrictEqual(output, item.json); | |
| 145 | 145 | })); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments