mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
Improve test coverage
This commit is contained in:
parent
46042baec8
commit
2f928310d5
@ -48,6 +48,21 @@ test('flatten - classdesc', function (t) {
|
||||
});
|
||||
});
|
||||
|
||||
test('flatten - augments', function (t) {
|
||||
evaluate(function () {
|
||||
/** @augments Foo */
|
||||
return 0;
|
||||
}, function (result) {
|
||||
t.deepEqual(result[0].augments, [{
|
||||
'title': 'augments',
|
||||
'description': null,
|
||||
'type': null,
|
||||
'name': 'Foo'
|
||||
}]);
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
test('flatten - kind', function (t) {
|
||||
evaluate(function () {
|
||||
/** @kind class */
|
||||
|
||||
@ -65,3 +65,21 @@ test('hierarchy', function (t) {
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
test('hierarchy - missing memberof', function (t) {
|
||||
evaluate(function () {
|
||||
|
||||
/**
|
||||
* Get foo
|
||||
* @memberof DoesNotExist
|
||||
* @returns {Number} foo
|
||||
*/
|
||||
function getFoo () {
|
||||
return this.foo;
|
||||
}
|
||||
|
||||
}, function (result) {
|
||||
t.equal(result.length, 1);
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user