From 789b9a056ac24e08aaa4b530fb6e435f68a36aac Mon Sep 17 00:00:00 2001 From: h13i32maru Date: Sat, 22 Apr 2017 21:29:44 +0900 Subject: [PATCH] fix(index.json): rename dump.json to index.json --- src/ESDoc.js | 4 ++-- test/src/ConfigTest/ExcludesTest.js | 2 +- test/src/ConfigTest/FindConfigPathTest.js | 6 +++--- test/src/ConfigTest/ManualTest.js | 2 +- test/src/ConfigTest/PluginsTest.js | 2 +- test/src/ConfigTest/TestTest.js | 2 +- test/src/init.js | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ESDoc.js b/src/ESDoc.js index 118d8b5c..e5143d7b 100644 --- a/src/ESDoc.js +++ b/src/ESDoc.js @@ -106,9 +106,9 @@ export default class ESDoc { // cleanup fs.removeSync(config.destination); - // dump.json + // index.json { - const dumpPath = path.resolve(config.destination, 'dump.json'); + const dumpPath = path.resolve(config.destination, 'index.json'); fs.outputFileSync(dumpPath, JSON.stringify(results, null, 2)); } diff --git a/test/src/ConfigTest/ExcludesTest.js b/test/src/ConfigTest/ExcludesTest.js index 1bff4b52..1d0ea403 100644 --- a/test/src/ConfigTest/ExcludesTest.js +++ b/test/src/ConfigTest/ExcludesTest.js @@ -4,7 +4,7 @@ import {cli, readTags} from '../util.js'; /** @test {ESDoc.generate} */ describe('test config.excludes: ["Class\\.js"]', ()=>{ cli('./test/fixture/config/esdoc-excludes.json'); - const tags = readTags('./test/fixture/dest/esdoc-excludes/dump.json'); + const tags = readTags('./test/fixture/dest/esdoc-excludes/index.json'); it('does not have excluded identifier', ()=>{ const tag = tags.find(tag => tag.name === 'TestDescClass'); diff --git a/test/src/ConfigTest/FindConfigPathTest.js b/test/src/ConfigTest/FindConfigPathTest.js index 405781b9..dd96d9fd 100644 --- a/test/src/ConfigTest/FindConfigPathTest.js +++ b/test/src/ConfigTest/FindConfigPathTest.js @@ -18,19 +18,19 @@ describe('test finding config path:', ()=>{ process.chdir(cwd); it('can find .esdoc.json', ()=>{ - const tags = readTags('./test/fixture/dest/find-.esdoc.json/dump.json'); + const tags = readTags('./test/fixture/dest/find-.esdoc.json/index.json'); const tag = tags.find(tag => tag.name === 'TestAccessClassPublic'); assert(tag); }); it('can find .esdoc.js', ()=>{ - const tags = readTags('./test/fixture/dest/find-.esdoc.js/dump.json'); + const tags = readTags('./test/fixture/dest/find-.esdoc.js/index.json'); const tag = tags.find(tag => tag.name === 'TestAccessClassPublic'); assert(tag); }); it('can find package.js', ()=>{ - const tags = readTags('./test/fixture/dest/find-package.json/dump.json'); + const tags = readTags('./test/fixture/dest/find-package.json/index.json'); const tag = tags.find(tag => tag.name === 'TestAccessClassPublic'); assert(tag); }); diff --git a/test/src/ConfigTest/ManualTest.js b/test/src/ConfigTest/ManualTest.js index c6e003a4..2284b27f 100644 --- a/test/src/ConfigTest/ManualTest.js +++ b/test/src/ConfigTest/ManualTest.js @@ -4,7 +4,7 @@ import {readTags, cli} from '../util.js'; /** @test {ManualDocBuilder} */ describe('test config.manual: null', ()=>{ cli('./test/fixture/config/esdoc-manual.json'); - const tags = readTags('./test/fixture/dest/esdoc-manual/dump.json'); + const tags = readTags('./test/fixture/dest/esdoc-manual/index.json'); it('does not have manual.', ()=>{ const tag = tags.find(tag => tag.kind === 'manualOverview'); diff --git a/test/src/ConfigTest/PluginsTest.js b/test/src/ConfigTest/PluginsTest.js index 1a4ff906..34a188cd 100644 --- a/test/src/ConfigTest/PluginsTest.js +++ b/test/src/ConfigTest/PluginsTest.js @@ -6,7 +6,7 @@ import {cli, readTags} from '../util.js'; /** @test {Plugin} */ describe('test config.plugins: [...]', ()=>{ cli('./test/fixture/config/esdoc-plugins.json'); - const tags = readTags('./test/fixture/dest/esdoc-plugins/dump.json'); + const tags = readTags('./test/fixture/dest/esdoc-plugins/index.json'); /* eslint-disable global-require */ it('call each handlers', ()=>{ diff --git a/test/src/ConfigTest/TestTest.js b/test/src/ConfigTest/TestTest.js index 6481285b..de6cbe22 100644 --- a/test/src/ConfigTest/TestTest.js +++ b/test/src/ConfigTest/TestTest.js @@ -6,7 +6,7 @@ describe('test config.test: null', ()=>{ cli('./test/fixture/config/esdoc-test.json'); it('does not have test integration', ()=>{ - const tags = readTags('./test/fixture/dest/esdoc-test/dump.json'); + const tags = readTags('./test/fixture/dest/esdoc-test/index.json'); const tag = tags.find(tag => tag.name === 'testDescribe'); assert.equal(tag, null); }); diff --git a/test/src/init.js b/test/src/init.js index a40fc3fd..91ffd8b4 100644 --- a/test/src/init.js +++ b/test/src/init.js @@ -1,4 +1,4 @@ import {cli, readTags} from './util.js'; cli('./test/fixture/package/esdoc.json'); -global.tags = readTags('./test/fixture/dest/esdoc/dump.json'); +global.tags = readTags('./test/fixture/dest/esdoc/index.json');