File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/amazonq/test/unit/codewhispererChat/controllers/chat/chatRequest Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -233,11 +233,11 @@ describe('triggerPayloadToChatRequest', () => {
233233 ?. relevantDocuments ?. [ 0 ] ?. text
234234
235235 // Verify priority ordering
236- assert . strictEqual ( userInputLength , after [ 0 ] )
237- assert . strictEqual ( promptContext ?. length , after [ 1 ] )
238- assert . strictEqual ( currentFileLength , after [ 2 ] )
239- assert . strictEqual ( ruleContext ?. length , after [ 3 ] )
240- assert . strictEqual ( fileContext ?. length , after [ 4 ] )
241- assert . strictEqual ( workspaceContext ?. length , after [ 5 ] )
236+ assert . strictEqual ( userInputLength ?? 0 , after [ 0 ] )
237+ assert . strictEqual ( promptContext ?. length ?? 0 , after [ 1 ] )
238+ assert . strictEqual ( currentFileLength ?? 0 , after [ 2 ] )
239+ assert . strictEqual ( ruleContext ?. length ?? 0 , after [ 3 ] )
240+ assert . strictEqual ( fileContext ?. length ?? 0 , after [ 4 ] )
241+ assert . strictEqual ( workspaceContext ?. length ?? 0 , after [ 5 ] )
242242 }
243243} )
You can’t perform that action at this time.
0 commit comments