mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
Merge pull request #400 from btd/master
Add test for Object.prototype member's name
This commit is contained in:
commit
e93e4e4c89
@ -147,3 +147,36 @@ test('hierarchy - anonymous', function (t) {
|
||||
}]);
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('hierarchy - object prototype member names', function (t) {
|
||||
var comments = evaluate(function () {
|
||||
/**
|
||||
* @name should
|
||||
* @function
|
||||
*/
|
||||
|
||||
/**
|
||||
* @name Assertion
|
||||
* @class
|
||||
* @memberof should
|
||||
*/
|
||||
|
||||
/**
|
||||
* @name hasOwnProperty
|
||||
* @memberof should.Assertion
|
||||
* @instance
|
||||
* @function
|
||||
**/
|
||||
|
||||
/**
|
||||
* @name otherMethod
|
||||
* @memberof should.Assertion
|
||||
* @instance
|
||||
* @function
|
||||
**/
|
||||
});
|
||||
|
||||
t.deepEqual(_.map(comments[0].members.static[0].members.instance, 'name'), [ 'hasOwnProperty', 'otherMethod' ]);
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user