You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FABCN-397] State queries limited to 100 results (#141) (#142)
Errow was the new version of protobufjs used to create the bundle.js
gave a different property to the 'has more' field. hasMore replaced
has_more
As this accessed as JS property it didn't fail, but meant only a limited
number could be accessed.
corrected, added test for 229 results.
bit of dead code pruning
Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
Copy file name to clipboardExpand all lines: libraries/fabric-shim/test/unit/iterators.js
+19-46Lines changed: 19 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -107,9 +107,9 @@ describe('Iterator', () => {
107
107
getResultFromBytesStub.restore();
108
108
});
109
109
110
-
it('should return value of first element of results converted from bytes and done false when has_more false and results has no more elements after currentLoc',()=>{
110
+
it('should return value of first element of results converted from bytes and done false when hasMore false and results has no more elements after currentLoc',()=>{
111
111
mockResponse.results=['some result bytes'];
112
-
mockResponse.has_more=false;
112
+
mockResponse.hasMore=false;
113
113
114
114
constresult=ci._createAndEmitResult();
115
115
@@ -121,9 +121,9 @@ describe('Iterator', () => {
121
121
});
122
122
});
123
123
124
-
it('should return value of first element of results converted from bytes and done false when has_more true and results has no more elements after currentLoc',()=>{
124
+
it('should return value of first element of results converted from bytes and done false when hasMore true and results has no more elements after currentLoc',()=>{
125
125
mockResponse.results=['some result bytes'];
126
-
mockResponse.has_more=true;
126
+
mockResponse.hasMore=true;
127
127
128
128
constresult=ci._createAndEmitResult();
129
129
@@ -136,9 +136,9 @@ describe('Iterator', () => {
136
136
});
137
137
});
138
138
139
-
it('should return value of first element of results converted from bytes and done false when has_more false and results has elements after currentLoc',()=>{
139
+
it('should return value of first element of results converted from bytes and done false when hasMore false and results has elements after currentLoc',()=>{
140
140
mockResponse.results=['some result bytes','some more result bytes'];
141
-
mockResponse.has_more=false;
141
+
mockResponse.hasMore=false;
142
142
143
143
constresult=ci._createAndEmitResult();
144
144
@@ -151,9 +151,9 @@ describe('Iterator', () => {
151
151
});
152
152
});
153
153
154
-
it('should return value of first element of results converted from bytes and done false when has_more true and results has elements after currentLoc',()=>{
154
+
it('should return value of first element of results converted from bytes and done false when hasMore true and results has elements after currentLoc',()=>{
155
155
mockResponse.results=['some result bytes','some more result bytes'];
156
-
mockResponse.has_more=true;
156
+
mockResponse.hasMore=true;
157
157
158
158
constresult=ci._createAndEmitResult();
159
159
@@ -168,7 +168,7 @@ describe('Iterator', () => {
168
168
169
169
it('should return as expected with non-zero currentLoc',()=>{
170
170
mockResponse.results=['some result bytes','some more result bytes'];
171
-
mockResponse.has_more=true;
171
+
mockResponse.hasMore=true;
172
172
173
173
ci.currentLoc=1;
174
174
@@ -185,7 +185,7 @@ describe('Iterator', () => {
185
185
186
186
it('should return value of first element of results converted from bytes and done false',()=>{
187
187
mockResponse.results=['some result bytes','some more result bytes'];
0 commit comments