diff --git a/lib/jsdoc/tag/dictionary/definitions.js b/lib/jsdoc/tag/dictionary/definitions.js index 1adb045f..ad02345b 100644 --- a/lib/jsdoc/tag/dictionary/definitions.js +++ b/lib/jsdoc/tag/dictionary/definitions.js @@ -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'; } + */ } } }) diff --git a/test/specs/tags/defaulttag.js b/test/specs/tags/defaulttag.js index 42a38271..c36e0719 100644 --- a/test/specs/tags/defaulttag.js +++ b/test/specs/tags/defaulttag.js @@ -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); });