File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
redisinsight/ui/src/components/query/query-card Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,24 @@ describe('QueryCard', () => {
158
158
expect ( queryCliResultEl ) . toBeInTheDocument ( )
159
159
} )
160
160
161
+ it ( 'should render properly result when it has pure number' , ( ) => {
162
+ const { getByTestId } = render (
163
+ < QueryCard
164
+ { ...instance ( mockedProps ) }
165
+ resultsMode = { ResultsMode . GroupMode }
166
+ result = { [ {
167
+ status : CommandExecutionStatus . Success ,
168
+ response : 1 ,
169
+ } ] }
170
+ isOpen
171
+ command = "del key"
172
+ />
173
+ )
174
+ const queryCliResultEl = getByTestId ( 'query-cli-result' )
175
+
176
+ expect ( queryCliResultEl . textContent ) . toBe ( '(integer) 1' )
177
+ } )
178
+
161
179
it ( 'should render QueryCardCliResult when result reached response size threshold even w/o flag' , ( ) => {
162
180
const { queryByTestId } = render (
163
181
< QueryCard
You can’t perform that action at this time.
0 commit comments