Improve test coverage

This commit is contained in:
Tom MacWright 2015-04-09 14:01:22 -07:00
parent 46042baec8
commit 2f928310d5
2 changed files with 33 additions and 0 deletions

View File

@ -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 */

View File

@ -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();
});
});