diff options
author | F. Eugene Aumson <feuGeneA@users.noreply.github.com> | 2018-09-24 22:21:12 +0800 |
---|---|---|
committer | F. Eugene Aumson <feuGeneA@users.noreply.github.com> | 2018-09-25 00:29:02 +0800 |
commit | 880cd6e440c76d819cdb04d2971375cf9e0ea97b (patch) | |
tree | e9966bdf36c101355265b67b8fd71feaa770d86a /packages/sol-doc/test | |
parent | 98d06d6d252ed379d60bcef915caf38a5ec7a5af (diff) | |
download | dexon-0x-contracts-880cd6e440c76d819cdb04d2971375cf9e0ea97b.tar dexon-0x-contracts-880cd6e440c76d819cdb04d2971375cf9e0ea97b.tar.gz dexon-0x-contracts-880cd6e440c76d819cdb04d2971375cf9e0ea97b.tar.bz2 dexon-0x-contracts-880cd6e440c76d819cdb04d2971375cf9e0ea97b.tar.lz dexon-0x-contracts-880cd6e440c76d819cdb04d2971375cf9e0ea97b.tar.xz dexon-0x-contracts-880cd6e440c76d819cdb04d2971375cf9e0ea97b.tar.zst dexon-0x-contracts-880cd6e440c76d819cdb04d2971375cf9e0ea97b.zip |
fix: document return value's type, not its name
Diffstat (limited to 'packages/sol-doc/test')
-rw-r--r-- | packages/sol-doc/test/solidity_doc_generator_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/sol-doc/test/solidity_doc_generator_test.ts b/packages/sol-doc/test/solidity_doc_generator_test.ts index 0cbb786af..c780d3d31 100644 --- a/packages/sol-doc/test/solidity_doc_generator_test.ts +++ b/packages/sol-doc/test/solidity_doc_generator_test.ts @@ -86,8 +86,8 @@ describe('#SolidityDocGenerator', () => { it('parameter comment', () => { expect(methodDoc.parameters[0].comment).to.equal('publicMethod @param'); }); - it('return type name', () => { - expect(methodDoc.returnType.name).to.equal('r'); + it('return type', () => { + expect(methodDoc.returnType.name).to.equal('int256'); }); it('return comment', () => { expect(methodDoc.returnComment).to.equal('publicMethod @return'); @@ -116,8 +116,8 @@ describe('#SolidityDocGenerator', () => { it('parameter comment', () => { expect(methodDoc.parameters[0].comment).to.equal('externalMethod @param'); }); - it('return type name', () => { - expect(methodDoc.returnType.name).to.equal('r'); + it('return type', () => { + expect(methodDoc.returnType.name).to.equal('int256'); }); it('return comment', () => { expect(methodDoc.returnComment).to.equal('externalMethod @return'); |