File tree 1 file changed +6
-1
lines changed
src/store/agent/slices/chat/selectors
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ describe('agentChatConfigSelectors', () => {
86
86
} ) ;
87
87
88
88
describe ( 'historyCount' , ( ) => {
89
- it ( 'should return undefined when historyCount is not defined' , ( ) => {
89
+ it ( 'should return default value when historyCount is not defined' , ( ) => {
90
90
const state = createMockState ( ) ;
91
91
expect ( agentChatConfigSelectors . historyCount ( state ) ) . toBe ( 8 ) ;
92
92
} ) ;
@@ -95,6 +95,11 @@ describe('agentChatConfigSelectors', () => {
95
95
const state = createMockState ( { historyCount : 20 } ) ;
96
96
expect ( agentChatConfigSelectors . historyCount ( state ) ) . toBe ( 20 ) ;
97
97
} ) ;
98
+
99
+ it ( 'should return 0 when historyCount is explicitly set to 0' , ( ) => {
100
+ const state = createMockState ( { historyCount : 0 } ) ;
101
+ expect ( agentChatConfigSelectors . historyCount ( state ) ) . toBe ( 0 ) ;
102
+ } ) ;
98
103
} ) ;
99
104
100
105
describe ( 'agentSearchMode' , ( ) => {
You can’t perform that action at this time.
0 commit comments