test('InvalidOptionArgumentError', () => { // Deprecated
checkClass(new commander.InvalidOptionArgumentError('failed'), 'InvalidArgumentError');
});
test('createCommand', () => {
checkClass(commander.createCommand('foo'), 'Command');
});
// Factory functions are not found if esModuleInterop is true, so comment out tests for now.
// Can uncomment these again when we drop the default export of global program and add the factory functions explicitly.
test('createOption', () => {
checkClass(commander.createOption('-e, --example', 'description'), 'Option');
});
// test('createCommand', () => {
// checkClass(commander.createCommand('foo'), 'Command');
// });
// test('createOption', () => {
// checkClass(commander.createOption('-e, --example', 'description'), 'Option');
// });
test('createArgument', () => {
checkClass(commander.createArgument('<foo>', 'description'), 'Argument');
});
// test('createArgument', () => {
// checkClass(commander.createArgument('<foo>', 'description'), 'Argument');
// });
});