Replies: 1 comment
-
@jonmchan , @bestbeforetoday could you help with this ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing a smart contract in typescript. After generating the project from IBM Blockchain Platform vscode plugin, I noticed the general unit code testing strategy was to mock the stubs such as:
I wanted to test my function that called the getHistoryForKey function but ran into some major issues with the iterator. I created a solution but would like some feedback on it. Would this be the most optimal way to stub/mock hyperledger fabric functions that return iterators?
https://stackoverflow.com/questions/71317787/how-to-generate-mocked-object-for-gethistoryforkey-method/71359764#71359764
@mbwhite @jt-nti - your thoughts?
Beta Was this translation helpful? Give feedback.
All reactions