mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
`@jsdoc/cli` deals with command-line arguments, and `@jsdoc/util` casts values to appropriate types.
32 lines
674 B
JavaScript
32 lines
674 B
JavaScript
const cli = require('../../index');
|
|
|
|
describe('@jsdoc/cli', () => {
|
|
it('is an object', () => {
|
|
expect(cli).toBeObject();
|
|
});
|
|
|
|
it('has an args object', () => {
|
|
expect(cli.args).toBeObject();
|
|
});
|
|
|
|
it('has a help string', () => {
|
|
expect(cli.help).toBeString();
|
|
});
|
|
|
|
describe('args', () => {
|
|
it('is ./lib/args', () => {
|
|
const args = require('../../lib/args');
|
|
|
|
expect(cli.args).toBe(args);
|
|
});
|
|
});
|
|
|
|
describe('help', () => {
|
|
it('is ./lib/help', () => {
|
|
const help = require('../../lib/help');
|
|
|
|
expect(cli.help).toBe(help);
|
|
});
|
|
});
|
|
});
|