Jeff Williams b850fa14b9 feature(@jsdoc/core): add simple inversion of control (IoC) tool
Currently unused. Intended to be used for JSDoc core dependencies that must be available everywhere, such as the config and the event bus.
2021-09-26 09:54:42 -07:00

32 lines
665 B
JavaScript

const core = require('../../index');
describe('@jsdoc/core', () => {
it('is an object', () => {
expect(core).toBeObject();
});
describe('config', () => {
it('is lib/config', () => {
const config = require('../../lib/config');
expect(core.config).toBe(config);
});
});
describe('dependencies', () => {
it('is lib/dependencies', () => {
const dependencies = require('../../lib/dependencies');
expect(core.dependencies).toBe(dependencies);
});
});
describe('name', () => {
it('is lib/name', () => {
const name = require('../../lib/name');
expect(core.name).toBe(name);
});
});
});