Skip to content

Commit

Permalink
fix: rename intentFIlter test and function
Browse files Browse the repository at this point in the history
  • Loading branch information
JosselinMorau committed Aug 10, 2018
1 parent a12a3b9 commit 0018810
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/test-complexdialogs/src/classification-filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
async function intentFilter(intents, { userMessage }) {
async function classificationFilter(intents, { userMessage }) {
if (userMessage.payload.value === 'Je veux') {
return [];
}
Expand All @@ -13,4 +13,4 @@ async function intentFilter(intents, { userMessage }) {
return intents;
}

module.exports = intentFilter;
module.exports = classificationFilter;
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
const { Bot, BotTextMessage, UserTextMessage } = require('botfuel-dialog');
const config = require('../test-config');

describe('intent filter', () => {
describe('classification filter', () => {
test('should clear classificationResults', async () => {
const bot = new Bot(config);
const { adapter } = bot;
Expand Down

0 comments on commit 0018810

Please sign in to comment.