mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
35 lines
791 B
JavaScript
35 lines
791 B
JavaScript
(function() {
|
|
var jsdoc = { opts: require('jsdoc/opts') };
|
|
|
|
var testSuite = {
|
|
suiteName: 'jsdoc/opts',
|
|
|
|
setUp: function() {
|
|
},
|
|
|
|
tearDown: function() {
|
|
},
|
|
|
|
testOptsApi: function() {
|
|
assertEqual(typeof jsdoc.opts.set, 'function');
|
|
},
|
|
|
|
testOptsSetDefault: function() {
|
|
var opts = jsdoc.opts.set();
|
|
|
|
assertEqual(typeof opts, 'object');
|
|
assertEqual(typeof opts.destination, 'string');
|
|
assertEqual(opts.destination, 'jsdoc.xml');
|
|
},
|
|
|
|
testOptsSet: function() {
|
|
var opts = jsdoc.opts.set(['-d', 'mydestination.json']);
|
|
|
|
assertEqual(typeof opts, 'object');
|
|
assertEqual(typeof opts.destination, 'string');
|
|
assertEqual(opts.destination, 'mydestination.json');
|
|
}
|
|
};
|
|
|
|
testSuites.push(testSuite);
|
|
})(); |