test(aio): fix test descriptions for ordering of processors

This commit is contained in:
Peter Bacon Darwin 2017-03-21 10:57:58 +00:00 committed by Miško Hevery
parent 20aab64c65
commit fd7b855cfc
5 changed files with 9 additions and 9 deletions

View File

@ -11,12 +11,12 @@ describe('filterIgnoredDocs processor', () => {
expect(processor.$process).toBeDefined();
});
it('should run before computing-paths', () => {
it('should run before the correct processor', () => {
const processor = processorFactory();
expect(processor.$runBefore).toEqual(['computing-paths'])
});
it('should run before computing-paths', () => {
it('should run after the correct processor', () => {
const processor = processorFactory();
expect(processor.$runAfter).toEqual(['ids-computed']);
});

View File

@ -11,12 +11,12 @@ describe('filterPrivateDocs processor', () => {
expect(processor.$process).toBeDefined();
});
it('should run before computing-paths', () => {
it('should run before the correct processor', () => {
const processor = processorFactory();
expect(processor.$runBefore).toEqual(['computing-paths'])
});
it('should run before computing-paths', () => {
it('should run after the correct processor', () => {
const processor = processorFactory();
expect(processor.$runAfter).toEqual(['extra-docs-added']);
});

View File

@ -16,7 +16,7 @@ describe('fixInternalDocumentLinks processor', () => {
expect(processor.$runBefore).toEqual(['writeFilesProcessor'])
});
it('should run before the correct processor', () => {
it('should run after the correct processor', () => {
const processor = processorFactory();
expect(processor.$runAfter).toEqual(['inlineTagProcessor']);
});

View File

@ -11,12 +11,12 @@ describe('generateApiListDoc processor', () => {
expect(processor.$process).toBeDefined();
});
it('should run after "extra-docs-added"', () => {
it('should run after the correct processor', () => {
const processor = processorFactory();
expect(processor.$runAfter).toEqual(['extra-docs-added']);
});
it('should run before "rendering-docs"', () => {
it('should run before the correct processor', () => {
const processor = processorFactory();
expect(processor.$runBefore).toEqual(['rendering-docs']);
});

View File

@ -16,12 +16,12 @@ describe('generateKeywords processor', () => {
expect(processor.$process).toBeDefined();
});
it('should run after "paths-computed"', () => {
it('should run after the correct processor', () => {
const processor = processorFactory(mockLogger, mockReadFilesProcessor);
expect(processor.$runAfter).toEqual(['paths-computed']);
});
it('should run before "rendering-docs"', () => {
it('should run before the correct processor', () => {
const processor = processorFactory(mockLogger, mockReadFilesProcessor);
expect(processor.$runBefore).toEqual(['rendering-docs']);
});