mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
add test for the Markdown fix in acc47fdfd19c53f8836e6ec5ade939c94c23013a
This commit is contained in:
parent
012369aca4
commit
759243af08
5
plugins/test/fixtures/markdown.js
vendored
5
plugins/test/fixtures/markdown.js
vendored
@ -23,3 +23,8 @@ function bar() {}
|
||||
function MyClass(myParam) {
|
||||
this.value = myParam;
|
||||
}
|
||||
|
||||
/**
|
||||
* "See" {@link chat."#channel"."say-\"hello\""}.
|
||||
*/
|
||||
function MyOtherClass() {}
|
||||
|
||||
@ -31,6 +31,15 @@ describe('markdown plugin', function() {
|
||||
});
|
||||
});
|
||||
|
||||
it('should unescape " entities in inline tags, but not elsewhere', function() {
|
||||
var myOtherClass = docSet.getByLongname('MyOtherClass')[0];
|
||||
|
||||
plugin.handlers.newDoclet({ doclet: myOtherClass });
|
||||
|
||||
expect(myOtherClass.description).toContain('chat."#channel"."say-\\"hello\\""');
|
||||
expect(myOtherClass.description).toContain('"See"');
|
||||
});
|
||||
|
||||
describe('@see tag support', function() {
|
||||
var foo = docSet.getByLongname('foo')[0];
|
||||
var bar = docSet.getByLongname('bar')[0];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user