test(aio): fix test descriptions for ordering of processors
This commit is contained in:
parent
20aab64c65
commit
fd7b855cfc
|
@ -11,12 +11,12 @@ describe('filterIgnoredDocs processor', () => {
|
||||||
expect(processor.$process).toBeDefined();
|
expect(processor.$process).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should run before computing-paths', () => {
|
it('should run before the correct processor', () => {
|
||||||
const processor = processorFactory();
|
const processor = processorFactory();
|
||||||
expect(processor.$runBefore).toEqual(['computing-paths'])
|
expect(processor.$runBefore).toEqual(['computing-paths'])
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should run before computing-paths', () => {
|
it('should run after the correct processor', () => {
|
||||||
const processor = processorFactory();
|
const processor = processorFactory();
|
||||||
expect(processor.$runAfter).toEqual(['ids-computed']);
|
expect(processor.$runAfter).toEqual(['ids-computed']);
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,12 +11,12 @@ describe('filterPrivateDocs processor', () => {
|
||||||
expect(processor.$process).toBeDefined();
|
expect(processor.$process).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should run before computing-paths', () => {
|
it('should run before the correct processor', () => {
|
||||||
const processor = processorFactory();
|
const processor = processorFactory();
|
||||||
expect(processor.$runBefore).toEqual(['computing-paths'])
|
expect(processor.$runBefore).toEqual(['computing-paths'])
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should run before computing-paths', () => {
|
it('should run after the correct processor', () => {
|
||||||
const processor = processorFactory();
|
const processor = processorFactory();
|
||||||
expect(processor.$runAfter).toEqual(['extra-docs-added']);
|
expect(processor.$runAfter).toEqual(['extra-docs-added']);
|
||||||
});
|
});
|
||||||
|
|
|
@ -16,7 +16,7 @@ describe('fixInternalDocumentLinks processor', () => {
|
||||||
expect(processor.$runBefore).toEqual(['writeFilesProcessor'])
|
expect(processor.$runBefore).toEqual(['writeFilesProcessor'])
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should run before the correct processor', () => {
|
it('should run after the correct processor', () => {
|
||||||
const processor = processorFactory();
|
const processor = processorFactory();
|
||||||
expect(processor.$runAfter).toEqual(['inlineTagProcessor']);
|
expect(processor.$runAfter).toEqual(['inlineTagProcessor']);
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,12 +11,12 @@ describe('generateApiListDoc processor', () => {
|
||||||
expect(processor.$process).toBeDefined();
|
expect(processor.$process).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should run after "extra-docs-added"', () => {
|
it('should run after the correct processor', () => {
|
||||||
const processor = processorFactory();
|
const processor = processorFactory();
|
||||||
expect(processor.$runAfter).toEqual(['extra-docs-added']);
|
expect(processor.$runAfter).toEqual(['extra-docs-added']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should run before "rendering-docs"', () => {
|
it('should run before the correct processor', () => {
|
||||||
const processor = processorFactory();
|
const processor = processorFactory();
|
||||||
expect(processor.$runBefore).toEqual(['rendering-docs']);
|
expect(processor.$runBefore).toEqual(['rendering-docs']);
|
||||||
});
|
});
|
||||||
|
|
|
@ -16,12 +16,12 @@ describe('generateKeywords processor', () => {
|
||||||
expect(processor.$process).toBeDefined();
|
expect(processor.$process).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should run after "paths-computed"', () => {
|
it('should run after the correct processor', () => {
|
||||||
const processor = processorFactory(mockLogger, mockReadFilesProcessor);
|
const processor = processorFactory(mockLogger, mockReadFilesProcessor);
|
||||||
expect(processor.$runAfter).toEqual(['paths-computed']);
|
expect(processor.$runAfter).toEqual(['paths-computed']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should run before "rendering-docs"', () => {
|
it('should run before the correct processor', () => {
|
||||||
const processor = processorFactory(mockLogger, mockReadFilesProcessor);
|
const processor = processorFactory(mockLogger, mockReadFilesProcessor);
|
||||||
expect(processor.$runBefore).toEqual(['rendering-docs']);
|
expect(processor.$runBefore).toEqual(['rendering-docs']);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue