Skip to content

Commit

Permalink
Fix tests due to state variable name change
Browse files Browse the repository at this point in the history
  • Loading branch information
Corina Gum committed Jul 23, 2024
1 parent 67fafd6 commit 99278f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/packages/teams-ai/src/planners/AssistantsPlanner.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ describe('AssistantsPlanner', () => {
assert.equal(plan2.commands[0].type, 'SAY');
assert.equal((plan2.commands[0] as PredictedSayCommand).response.content, 'welcome');

const toolMap: { [key: string]: string } = state.getValue('temp.submit_tool_map');
const toolMap: { [key: string]: string } = state.getValue('temp.submitToolMap');
console.log(toolMap);
assert(toolMap);
assert.equal(Object.keys(toolMap).length, 1);
assert('test-action' in toolMap);
Expand Down Expand Up @@ -334,7 +335,7 @@ describe('AssistantsPlanner', () => {
assert.equal(plan2.commands[0].type, 'SAY');
assert.equal((plan2.commands[0] as PredictedSayCommand).response.content, 'welcome');

const toolMap: { [key: string]: string } = state.getValue('temp.submit_tool_map');
const toolMap: { [key: string]: string } = state.getValue('temp.submitToolMap');
assert(toolMap);
assert.equal(Object.keys(toolMap).length, 1);
assert('test-action' in toolMap);
Expand Down

0 comments on commit 99278f1

Please sign in to comment.