Skip to content

Commit

Permalink
fixed tests failing
Browse files Browse the repository at this point in the history
  • Loading branch information
sthefanisilveira committed Aug 30, 2023
1 parent 46a1632 commit 1eaf958
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@sentry/integrations": "^6.13.2",
"@sentry/vue": "^6.13.2",
"@weni/unnnic-system": "^1.16.13",
"@weni/unnnic-system": "^1.16.27",
"axios": "0.21.1",
"core-js": "^3.6.5",
"global": "^4.4.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ singleApp.config = {
rules: 'rules',
knowledge_base: 'base',
ai_model: 'gpt-3.5-turbo-16k',
voice_tone: [{
'value': '1',
'label': 'Neutral',
}],
conversation_style: [
{
'value': '0.7,0.8',
'label': 'Creative',
'description': 'Responds creatively, less objectively'
}
],
};

const localVue = createLocalVue();
Expand Down Expand Up @@ -196,7 +207,7 @@ describe('components/config/external/chatgpt/Config.vue', () => {
});

describe('saveConfig()', () => {
it('should call updateApp with the correct payload if rules || knowledgeBase || selectedVersion changed', async () => {
it('should call updateApp with the correct payload if rules || knowledgeBase || selectedVersion changed || selectedVoiceTone || selectedConversationStyle', async () => {
const { wrapper, actions } = await mountComponent();

const rulesInput = wrapper.findComponent({ ref: 'rules-input' });
Expand All @@ -215,6 +226,9 @@ describe('components/config/external/chatgpt/Config.vue', () => {
ai_model: 'gpt-3.5-turbo-16k',
rules: 'rules 1',
knowledge_base: 'knowledge base 1',
temperature: "0.7",
top_p: "0.8",
voice_tone: "Em tom Neutral",
},
},
});
Expand Down

0 comments on commit 1eaf958

Please sign in to comment.