Skip to content

Commit

Permalink
fix(index.json): rename dump.json to index.json
Browse files Browse the repository at this point in the history
  • Loading branch information
h13i32maru committed Apr 22, 2017
1 parent 82db7bc commit 789b9a0
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/ESDoc.js
Expand Up @@ -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));
}

Expand Down
2 changes: 1 addition & 1 deletion test/src/ConfigTest/ExcludesTest.js
Expand Up @@ -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');
Expand Down
6 changes: 3 additions & 3 deletions test/src/ConfigTest/FindConfigPathTest.js
Expand Up @@ -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);
});
Expand Down
2 changes: 1 addition & 1 deletion test/src/ConfigTest/ManualTest.js
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion test/src/ConfigTest/PluginsTest.js
Expand Up @@ -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', ()=>{
Expand Down
2 changes: 1 addition & 1 deletion test/src/ConfigTest/TestTest.js
Expand Up @@ -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);
});
Expand Down
2 changes: 1 addition & 1 deletion 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');

0 comments on commit 789b9a0

Please sign in to comment.