mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
fix(jsdoc-core): remove ill-conceived test
Running the legacy template in a test has too many potential side effects. (Also, it wasn't working, because the JSDoc environment was missing some data.)
This commit is contained in:
parent
619dc07b4a
commit
21c9f5df97
@ -200,20 +200,6 @@ describe('Api', () => {
|
|||||||
expect(env.docletStore).toBe(fakeDocletStore);
|
expect(env.docletStore).toBe(fakeDocletStore);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('uses the legacy template by default', async () => {
|
|
||||||
options.template = null;
|
|
||||||
|
|
||||||
try {
|
|
||||||
await instance.generateDocs();
|
|
||||||
|
|
||||||
// We shouldn't get here.
|
|
||||||
expect(false).toBeTrue();
|
|
||||||
} catch (e) {
|
|
||||||
expect(e.message).toContain('default template');
|
|
||||||
expect(e.message).toContain('@jsdoc/template-legacy');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
it('rejects the promise and logs a fatal error if the template cannot be found', async () => {
|
it('rejects the promise and logs a fatal error if the template cannot be found', async () => {
|
||||||
spyOn(env.log, 'fatal');
|
spyOn(env.log, 'fatal');
|
||||||
options.template = 'fleeble';
|
options.template = 'fleeble';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user