mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
temporarily disable the changes for #419
This commit is contained in:
parent
da22d723b7
commit
1f627daee2
@ -246,10 +246,13 @@ exports.defineTags = function(dictionary) {
|
||||
if (type === Syntax.Literal) {
|
||||
doclet.defaultvalue = String(value);
|
||||
}
|
||||
// TODO: reenable the changes for https://github.com/jsdoc3/jsdoc/pull/419
|
||||
/*
|
||||
else if (doclet.meta.code.type === 'OBJECTLIT') {
|
||||
doclet.defaultvalue = String(doclet.meta.code.node.toSource());
|
||||
doclet.defaultvaluetype = 'object';
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@ -39,12 +39,13 @@ describe("@default tag", function() {
|
||||
expect(header.defaultvalue).toBeUndefined();
|
||||
});
|
||||
|
||||
it('When symbol has a @default tag with an object, the doclet\'s defaultValue property should contain the stringified object', function() {
|
||||
// TODO: reenable the changes for https://github.com/jsdoc3/jsdoc/pull/419
|
||||
xit('When symbol has a @default tag with an object, the doclet\'s defaultValue property should contain the stringified object', function() {
|
||||
var expected_value = "{value_a: 'a', value_b: 'b'}";
|
||||
expect(obj.defaultvalue).toEqual(expected_value);
|
||||
});
|
||||
|
||||
it('When symbol has a @default tag with a multiline object, the doclet\'s defaultValue property should contain the properly stringified object', function() {
|
||||
xit('When symbol has a @default tag with a multiline object, the doclet\'s defaultValue property should contain the properly stringified object', function() {
|
||||
var expected_value = "{value_a: 'a', value_b: 'b'}";
|
||||
expect(obj.defaultvalue).toEqual(expected_value);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user