Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/node-red/node_modules/grunt-jsdoc/test/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /**
* @fileoverview NodeUnit test
* @copyright Bertrand Chevrier 2012
* @author Bertrand Chevrier <chevrier.bertrand@gmail.com>
* @license MIT
*
* @module test/jsdoc-task
*/
var fs = require('fs');
/**
* NodeUnit group of test that check the result once the task has been launched
*
* @see https://github.com/caolan/nodeunit/
*
* @class JsdocTaskTest
*/
var JsdocTaskTest = {
/**
* Check the destination directory exists
* @memberOf JsdociTaskTest
* @param {Object} test - the node unit test context
*/
'destination check': function(test) {
'use strict';
test.expect(1);
fs.exists(this.destination, function(result) {
test.ok(result === true, 'The documentation destination should exists');
test.done();
});
},
/**
* Check the documentation content
* @memberOf JsdociTaskTest
* @param {Object} test - the node unit test context
*/
'content check': function(test) {
var base = this.destination + '/';
test.expect(this.expectedFiles.length);
this.expectedFiles.forEach(function(file) {
test.ok(fs.existsSync(base + file), 'The file ' + base + file + ' should exists');
});
test.done();
}
};
module.exports = exports = JsdocTaskTest;
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.005 ]-- |