jsdoc/test/t/cases/this3.js
2011-06-17 21:06:37 +01:00

11 lines
511 B
JavaScript

(function() {
var docSet = testhelpers.getDocSetFromFile('test/cases/this3.js'),
found = docSet.getByLongname('position');
test('When a this is assigned to inside a non-constructor function.', function() {
assert.equal(found.length, 1, 'The member name should be global, like "member".');
assert.equal(found[0].name, 'position', 'The short name should be correct.');
assert.equal(found[0].memberof, undefined, 'The memberof should be correct.');
});
})();