wearetheledger / fabric-mock-stub

Mock implementation of the fabric-shim stub for testing
https://theledger.be
MIT License
49 stars 28 forks source link

queryByPartialKey #22

Closed 6lick closed 5 years ago

6lick commented 5 years ago

the mockstub queryByPartialKey accepts a string as the second parm, however real stub throws an error it must be a string array and the mockShim throws an error when I pass an array.

Using fabric-shim v1.4.1

sneljo1 commented 5 years ago

I'm following their type definitions so that would be strange. Are you maybe trying to use the querybypartialkey for private data? This one accepts a string as second param.