diff options
author | F. Eugene Aumson <gene@aumson.org> | 2018-09-18 05:27:33 +0800 |
---|---|---|
committer | F. Eugene Aumson <gene@aumson.org> | 2018-09-18 07:31:32 +0800 |
commit | 9201273939598a13ed00084acdb384403c36fcc4 (patch) | |
tree | 983990d2f71519f7a332f9e0199f7f40bee8bdd8 /packages/sol-doc/test | |
parent | 5b07669bd0e128a92c8a71d797ac95d77337209b (diff) | |
download | dexon-sol-tools-9201273939598a13ed00084acdb384403c36fcc4.tar dexon-sol-tools-9201273939598a13ed00084acdb384403c36fcc4.tar.gz dexon-sol-tools-9201273939598a13ed00084acdb384403c36fcc4.tar.bz2 dexon-sol-tools-9201273939598a13ed00084acdb384403c36fcc4.tar.lz dexon-sol-tools-9201273939598a13ed00084acdb384403c36fcc4.tar.xz dexon-sol-tools-9201273939598a13ed00084acdb384403c36fcc4.tar.zst dexon-sol-tools-9201273939598a13ed00084acdb384403c36fcc4.zip |
add and test support for return comment
Diffstat (limited to 'packages/sol-doc/test')
-rw-r--r-- | packages/sol-doc/test/solidity_doc_generator_test.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/sol-doc/test/solidity_doc_generator_test.ts b/packages/sol-doc/test/solidity_doc_generator_test.ts index bae67001b..23ffe7b9e 100644 --- a/packages/sol-doc/test/solidity_doc_generator_test.ts +++ b/packages/sol-doc/test/solidity_doc_generator_test.ts @@ -84,6 +84,9 @@ describe('#SolidityDocGenerator', () => { it('return type name', () => { expect(methodDoc.returnType.name).to.equal('r'); }); + it('return comment', () => { + expect(methodDoc.returnComment).to.equal('publicMethod @return'); + }); }); describe('should emit external method documentation for', () => { let methodDoc: SolidityMethod; @@ -111,6 +114,9 @@ describe('#SolidityDocGenerator', () => { it('return type name', () => { expect(methodDoc.returnType.name).to.equal('r'); }); + it('return comment', () => { + expect(methodDoc.returnComment).to.equal('externalMethod @return'); + }); }); it('should not truncate a multi-line devdoc comment', () => { // tslint:disable-next-line:no-unnecessary-type-assertion |