mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
@inner, @instance, @static tests added
This commit is contained in:
parent
bdfac98755
commit
ff77157eb1
30
test/specs/tags/scopetags.js
Normal file
30
test/specs/tags/scopetags.js
Normal file
@ -0,0 +1,30 @@
|
||||
// @inner, @instance, @static (@global has its own file)
|
||||
describe("@inner tag", function() {
|
||||
var doclet = require('jsdoc/doclet'),
|
||||
doc = new doclet.Doclet('/** @name Foo\n@scope inner */', {});
|
||||
|
||||
it("sets the doclet's 'scope' property to 'inner'", function() {
|
||||
expect(doc.scope).toBeDefined();
|
||||
expect(doc.scope).toBe('inner');
|
||||
});
|
||||
});
|
||||
|
||||
describe("@instance tag", function() {
|
||||
var doclet = require('jsdoc/doclet'),
|
||||
doc = new doclet.Doclet('/** @name Foo\n@scope instance */', {});
|
||||
|
||||
it("sets the doclet's 'scope' property to 'instance'", function() {
|
||||
expect(doc.scope).toBeDefined();
|
||||
expect(doc.scope).toBe('instance');
|
||||
});
|
||||
});
|
||||
|
||||
describe("@static tag", function() {
|
||||
var doclet = require('jsdoc/doclet'),
|
||||
doc = new doclet.Doclet('/** @name Foo\n@scope static */', {});
|
||||
|
||||
it("sets the doclet's 'scope' property to 'static'", function() {
|
||||
expect(doc.scope).toBeDefined();
|
||||
expect(doc.scope).toBe('static');
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user