mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
Fixed jshint-clean issues reported on github
This commit is contained in:
parent
427a46177d
commit
20a4bb43b0
@ -1,22 +1,22 @@
|
|||||||
describe("markdown plugin", function() {
|
describe("markdown plugin", function() {
|
||||||
//TODO
|
//TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("markdown see tag support", function() {
|
describe("markdown see tag support", function() {
|
||||||
var plugin = require('plugins/markdown'),
|
var plugin = require('plugins/markdown'),
|
||||||
docSet = jasmine.getDocSetFromFile('plugins/test/fixtures/seetag-markdown.js'),
|
docSet = jasmine.getDocSetFromFile('plugins/test/fixtures/seetag-markdown.js'),
|
||||||
foo = docSet.getByLongname('foo')[0],
|
foo = docSet.getByLongname('foo')[0],
|
||||||
bar = docSet.getByLongname('bar')[0];
|
bar = docSet.getByLongname('bar')[0];
|
||||||
|
|
||||||
it ('should parse @see tags containing links', function() {
|
it ('should parse @see tags containing links', function() {
|
||||||
plugin.handlers.newDoclet({doclet:foo});
|
plugin.handlers.newDoclet({doclet:foo});
|
||||||
expect(typeof foo).toEqual('object');
|
expect(typeof foo).toEqual('object');
|
||||||
expect(foo.see[0]).toEqual('<p><a href="http://nowhere.com">Nowhere</a></p>');
|
expect(foo.see[0]).toEqual('<p><a href="http://nowhere.com">Nowhere</a></p>');
|
||||||
})
|
})
|
||||||
|
|
||||||
it ('should not parse @see tags that do not contain links', function() {
|
it ('should not parse @see tags that do not contain links', function() {
|
||||||
plugin.handlers.newDoclet({doclet:bar});
|
plugin.handlers.newDoclet({doclet:bar});
|
||||||
expect(typeof bar).toEqual('object');
|
expect(typeof bar).toEqual('object');
|
||||||
expect(bar.see[0]).toEqual('AnObject#myProperty');
|
expect(bar.see[0]).toEqual('AnObject#myProperty');
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user