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:
Jeff Williams 2024-01-20 21:46:38 -08:00
parent 619dc07b4a
commit 21c9f5df97
No known key found for this signature in database

View File

@ -200,20 +200,6 @@ describe('Api', () => {
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 () => {
spyOn(env.log, 'fatal');
options.template = 'fleeble';