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

16 lines
555 B
JavaScript

(function() {
var docSet = testhelpers.getDocSetFromFile('test/cases/virtual.js'),
found = [
docSet.getByLongname('dimensions'),
docSet.getByLongname('width')
];
test('When a virtual symbol is documented.', function() {
assert.equal(found[0].length, 1, 'The symbol should be documented');
});
test('When an undocumented is after a comment for a virtual symbol is documented.', function() {
assert.equal(found[1].length, 1, 'The symbol should be documented');
});
})();