@tiledesk/tiledesk-tybot-connector 0.1.41 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/models/IntentForm.js +56 -6
- package/models/{IntentFormStudy.js → IntentForm_no_prefill.js} +6 -32
- package/models/TiledeskChatbot.js +11 -2
- package/package.json +1 -1
- package/test/intent_form_pre_filled_test.js +260 -0
- package/test/intent_form_test.js +0 -1
- package/test/single_test.sh +3 -2
package/CHANGELOG.md
CHANGED
package/models/IntentForm.js
CHANGED
|
@@ -11,6 +11,18 @@ class IntentForm {
|
|
|
11
11
|
this.CURRENT_FIELD_INDEX_KEY = "tilebot:requests:" + this.requestId + ":currentFieldIndex"
|
|
12
12
|
this.CURRENT_FORM_KEY = "tilebot:requests:" + this.requestId + ":currentForm"
|
|
13
13
|
this.log = options.log;
|
|
14
|
+
this.requestParameters = options.requestParameters;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
getParam(paramKey) {
|
|
18
|
+
if (!this.requestParameters) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
if (this.log) {
|
|
22
|
+
console.log("this.requestParameters:", this.requestParameters);
|
|
23
|
+
console.log("this.requestParameters[" + paramKey + "]:", this.requestParameters[paramKey]);
|
|
24
|
+
}
|
|
25
|
+
return this.requestParameters[paramKey];
|
|
14
26
|
}
|
|
15
27
|
|
|
16
28
|
async setValue(key, value) {
|
|
@@ -78,9 +90,27 @@ class IntentForm {
|
|
|
78
90
|
if (current_field == null) {
|
|
79
91
|
if (this.log) {console.log("current_field is undefined")}
|
|
80
92
|
current_field = 0;
|
|
93
|
+
|
|
94
|
+
// first "freeze" the currente form, so that eventual form modifications
|
|
95
|
+
// do not compromise this form processing.
|
|
81
96
|
await this.setValue(this.CURRENT_FORM_KEY, JSON.stringify(this.form));
|
|
97
|
+
|
|
98
|
+
// if (getParam(this.form.fields[current_field].name)) {
|
|
99
|
+
// //current_field++;
|
|
100
|
+
// await this.setValue(this.CURRENT_FIELD_INDEX_KEY, current_field); //=0
|
|
101
|
+
// return this.getMessage(current_value)
|
|
102
|
+
// }
|
|
103
|
+
// set the first field under the "await the response-value" state (=0)
|
|
82
104
|
await this.setValue(this.CURRENT_FIELD_INDEX_KEY, current_field);
|
|
83
|
-
//this
|
|
105
|
+
// now look for an already set value for this field in request parameters
|
|
106
|
+
if (this.log) {console.log("params", this.requestParameters);}
|
|
107
|
+
if (this.log) {console.log("checking field:", this.form.fields[current_field].name);}
|
|
108
|
+
const is_current_value = this.getParam(this.form.fields[current_field].name);
|
|
109
|
+
if (is_current_value) {
|
|
110
|
+
if (this.log) {console.log("is_current_value!", is_current_value);}
|
|
111
|
+
return await this.getMessage(is_current_value);
|
|
112
|
+
}
|
|
113
|
+
if (this.log) {console.log("Form asking fist value. No 'is_current_value' for first form field", is_current_value);}
|
|
84
114
|
if (this.log) {console.log("INTENT_FORM:", this.form);}
|
|
85
115
|
if (this.log) {console.log("CURRENT FIELD:", current_field);}
|
|
86
116
|
let message = {
|
|
@@ -92,9 +122,18 @@ class IntentForm {
|
|
|
92
122
|
}
|
|
93
123
|
}
|
|
94
124
|
else {
|
|
125
|
+
// = 0
|
|
126
|
+
// current++ (1) y? =>
|
|
127
|
+
//
|
|
128
|
+
//inc(current_field)=1 getMessage(null)
|
|
129
|
+
// == 1?
|
|
130
|
+
// n => continue =>
|
|
131
|
+
// param[1] n? => continue
|
|
132
|
+
// == 2? => set fields[2].name => user_text
|
|
95
133
|
//console.log("current_form:", current_form);
|
|
96
134
|
if (this.log) {console.log("current_field:", current_field);}
|
|
97
135
|
|
|
136
|
+
|
|
98
137
|
if (current_form.fields[current_field].regex) {
|
|
99
138
|
if (!this.validate(user_text, current_form.fields[current_field].regex)) {
|
|
100
139
|
if (this.log) {console.log("text is invalid");}
|
|
@@ -147,12 +186,23 @@ class IntentForm {
|
|
|
147
186
|
else {
|
|
148
187
|
if (this.log) {console.log("Processing next field:", current_field)}
|
|
149
188
|
await this.setValue(this.CURRENT_FIELD_INDEX_KEY, current_field);
|
|
150
|
-
|
|
151
|
-
|
|
189
|
+
|
|
190
|
+
if (this.log) {console.log("params", this.requestParameters);}
|
|
191
|
+
if (this.log) {console.log("checking field:", this.form.fields[current_field].name);}
|
|
192
|
+
|
|
193
|
+
const is_current_value = this.getParam(this.form.fields[current_field].name);
|
|
194
|
+
if (is_current_value) {
|
|
195
|
+
if (this.log) {console.log("is_current_value!", is_current_value);}
|
|
196
|
+
return await this.getMessage(is_current_value);
|
|
152
197
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
198
|
+
else {
|
|
199
|
+
return {
|
|
200
|
+
message: {
|
|
201
|
+
text: current_form.fields[current_field].label
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
|
|
156
206
|
}
|
|
157
207
|
}
|
|
158
208
|
}
|
|
@@ -78,19 +78,9 @@ class IntentForm {
|
|
|
78
78
|
if (current_field == null) {
|
|
79
79
|
if (this.log) {console.log("current_field is undefined")}
|
|
80
80
|
current_field = 0;
|
|
81
|
-
|
|
82
81
|
await this.setValue(this.CURRENT_FORM_KEY, JSON.stringify(this.form));
|
|
83
|
-
// if (getParam(this.form.fields[current_field].name)) {
|
|
84
|
-
// //current_field++;
|
|
85
|
-
// await this.setValue(this.CURRENT_FIELD_INDEX_KEY, current_field); //=0
|
|
86
|
-
// return this.getMessage(current_value)
|
|
87
|
-
// }
|
|
88
|
-
|
|
89
82
|
await this.setValue(this.CURRENT_FIELD_INDEX_KEY, current_field);
|
|
90
|
-
|
|
91
|
-
if (is_current_value) {
|
|
92
|
-
return await this.getMessage(is_current_value);
|
|
93
|
-
}
|
|
83
|
+
//this.printdb();
|
|
94
84
|
if (this.log) {console.log("INTENT_FORM:", this.form);}
|
|
95
85
|
if (this.log) {console.log("CURRENT FIELD:", current_field);}
|
|
96
86
|
let message = {
|
|
@@ -102,18 +92,9 @@ class IntentForm {
|
|
|
102
92
|
}
|
|
103
93
|
}
|
|
104
94
|
else {
|
|
105
|
-
// = 0
|
|
106
|
-
// current++ (1) y? =>
|
|
107
|
-
//
|
|
108
|
-
//inc(current_field)=1 getMessage(null)
|
|
109
|
-
// == 1?
|
|
110
|
-
// n => continue =>
|
|
111
|
-
// param[1] n? => continue
|
|
112
|
-
// == 2? => set fields[2].name => user_text
|
|
113
95
|
//console.log("current_form:", current_form);
|
|
114
96
|
if (this.log) {console.log("current_field:", current_field);}
|
|
115
97
|
|
|
116
|
-
|
|
117
98
|
if (current_form.fields[current_field].regex) {
|
|
118
99
|
if (!this.validate(user_text, current_form.fields[current_field].regex)) {
|
|
119
100
|
if (this.log) {console.log("text is invalid");}
|
|
@@ -166,19 +147,12 @@ class IntentForm {
|
|
|
166
147
|
else {
|
|
167
148
|
if (this.log) {console.log("Processing next field:", current_field)}
|
|
168
149
|
await this.setValue(this.CURRENT_FIELD_INDEX_KEY, current_field);
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
return await this.getMessage(is_current_value);
|
|
150
|
+
let message = {
|
|
151
|
+
text: current_form.fields[current_field].label
|
|
172
152
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
return {
|
|
178
|
-
message: message
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
|
|
153
|
+
return {
|
|
154
|
+
message: message
|
|
155
|
+
};
|
|
182
156
|
}
|
|
183
157
|
}
|
|
184
158
|
}
|
|
@@ -436,8 +436,17 @@ class TiledeskChatbot {
|
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
async execIntentForm(userInputReply, form) {
|
|
439
|
-
|
|
440
|
-
let
|
|
439
|
+
if (this.log) {console.log("executing intent form...")}
|
|
440
|
+
let all_parameters = await this.allParameters();
|
|
441
|
+
if (this.log) {console.log("allParameters for IntentForm:", all_parameters)}
|
|
442
|
+
let intentForm = new IntentForm(
|
|
443
|
+
{
|
|
444
|
+
form: form,
|
|
445
|
+
requestId: this.requestId,
|
|
446
|
+
chatbot: this,
|
|
447
|
+
requestParameters: all_parameters,
|
|
448
|
+
log: this.log
|
|
449
|
+
});
|
|
441
450
|
let message = await intentForm.getMessage(userInputReply);
|
|
442
451
|
return message;
|
|
443
452
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
var assert = require('assert');
|
|
2
|
+
const { ExtUtil } = require('../ExtUtil');
|
|
3
|
+
const { IntentForm } = require('../models/IntentForm');
|
|
4
|
+
const { MockTdCache } = require('../models/MockTdCache');
|
|
5
|
+
const { v4: uuidv4 } = require('uuid');
|
|
6
|
+
|
|
7
|
+
const TYPE_PREFIX = "_tdTypeOf:";
|
|
8
|
+
|
|
9
|
+
describe('IntentForm', function() {
|
|
10
|
+
|
|
11
|
+
it('basic form with 1 field, pre-filled', async () => {
|
|
12
|
+
const form = {
|
|
13
|
+
"fields": [
|
|
14
|
+
{
|
|
15
|
+
"name": "userFullname",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"label": "What is your name?"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const REQUEST_ID = "support-group-PROJECT_X-" + uuidv4().replace(/-/g, "");
|
|
23
|
+
|
|
24
|
+
const chatbot = new Chatbot();
|
|
25
|
+
await chatbot.addParameter('userFullname', "Already Andrea");
|
|
26
|
+
let all_parameters = await chatbot.allParameters();
|
|
27
|
+
// console.log("executing intent form...")
|
|
28
|
+
let intentForm = new IntentForm(
|
|
29
|
+
{
|
|
30
|
+
form: form,
|
|
31
|
+
requestId: REQUEST_ID,
|
|
32
|
+
chatbot: chatbot,
|
|
33
|
+
requestParameters: all_parameters,
|
|
34
|
+
log: false
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
let form_reply1 = await intentForm.getMessage("Trigger message");
|
|
38
|
+
// console.log("Got form first field label:", form_reply1)
|
|
39
|
+
assert(form_reply1 !== null);
|
|
40
|
+
assert(!form_reply1.canceled);
|
|
41
|
+
assert(form_reply1.end);
|
|
42
|
+
assert(all_parameters[form.fields[0].name] === "Already Andrea");
|
|
43
|
+
assert(all_parameters[TYPE_PREFIX + form.fields[0].name] === form.fields[0].type);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
it('basic form with 2 fields, both pre-filled', async () => {
|
|
47
|
+
const form = {
|
|
48
|
+
"fields": [
|
|
49
|
+
{
|
|
50
|
+
"name": "userFullname",
|
|
51
|
+
"type": "string",
|
|
52
|
+
"label": "What is your name?"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "userEmail",
|
|
56
|
+
"type": "string",
|
|
57
|
+
"label": "What is your email?"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const REQUEST_ID = "support-group-PROJECT_X-" + uuidv4().replace(/-/g, "");
|
|
63
|
+
|
|
64
|
+
const chatbot = new Chatbot();
|
|
65
|
+
await chatbot.addParameter('userFullname', "Already Andrea");
|
|
66
|
+
await chatbot.addParameter('userEmail', "Already Email");
|
|
67
|
+
let all_parameters = await chatbot.allParameters();
|
|
68
|
+
// console.log("executing intent form...")
|
|
69
|
+
let intentForm = new IntentForm(
|
|
70
|
+
{
|
|
71
|
+
form: form,
|
|
72
|
+
requestId: REQUEST_ID,
|
|
73
|
+
chatbot: chatbot,
|
|
74
|
+
requestParameters: all_parameters,
|
|
75
|
+
log: false
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
let form_reply1 = await intentForm.getMessage("Trigger message");
|
|
79
|
+
// console.log("Got form first field label:", form_reply1)
|
|
80
|
+
assert(form_reply1 !== null);
|
|
81
|
+
assert(!form_reply1.canceled);
|
|
82
|
+
assert(form_reply1.end);
|
|
83
|
+
assert(all_parameters[form.fields[0].name] === "Already Andrea");
|
|
84
|
+
assert(all_parameters[TYPE_PREFIX + form.fields[0].name] === form.fields[0].type);
|
|
85
|
+
assert(all_parameters[form.fields[1].name] === "Already Email");
|
|
86
|
+
assert(all_parameters[TYPE_PREFIX + form.fields[1].name] === form.fields[1].type);
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
it('basic form with 3 fields, only 1st & 2nd pre-filled', async () => {
|
|
90
|
+
const form = {
|
|
91
|
+
"fields": [
|
|
92
|
+
{
|
|
93
|
+
"name": "userFullname",
|
|
94
|
+
"type": "string",
|
|
95
|
+
"label": "What is your name?"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "userEmail",
|
|
99
|
+
"type": "string",
|
|
100
|
+
"label": "What is your email?"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "companyName",
|
|
104
|
+
"type": "longString",
|
|
105
|
+
"label": "Company name?"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
const REQUEST_ID = "support-group-PROJECT_X-" + uuidv4().replace(/-/g, "");
|
|
111
|
+
|
|
112
|
+
const chatbot = new Chatbot();
|
|
113
|
+
await chatbot.addParameter('userFullname', "Already Andrea");
|
|
114
|
+
await chatbot.addParameter('userEmail', "Already Email");
|
|
115
|
+
let all_parameters = await chatbot.allParameters();
|
|
116
|
+
// console.log("executing intent form...")
|
|
117
|
+
let intentForm = new IntentForm(
|
|
118
|
+
{
|
|
119
|
+
form: form,
|
|
120
|
+
requestId: REQUEST_ID,
|
|
121
|
+
chatbot: chatbot,
|
|
122
|
+
requestParameters: all_parameters,
|
|
123
|
+
log: false
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
let form_reply1 = await intentForm.getMessage("Trigger message");
|
|
127
|
+
// console.log("Got form first field label:", form_reply1)
|
|
128
|
+
assert(form_reply1 !== null);
|
|
129
|
+
assert(!form_reply1.canceled);
|
|
130
|
+
assert(form_reply1.message.text === form.fields[2].label);
|
|
131
|
+
|
|
132
|
+
let form_reply2 = await intentForm.getMessage("Tiledesk");
|
|
133
|
+
// console.log("Got form second field label:", form_reply2)
|
|
134
|
+
assert(form_reply2 !== null);
|
|
135
|
+
assert(!form_reply2.canceled);
|
|
136
|
+
assert(form_reply2.end);
|
|
137
|
+
assert(all_parameters[form.fields[2].name] === "Tiledesk");
|
|
138
|
+
assert(all_parameters[TYPE_PREFIX + form.fields[2].name] === form.fields[2].type);
|
|
139
|
+
|
|
140
|
+
assert(all_parameters[form.fields[0].name] === "Already Andrea");
|
|
141
|
+
assert(all_parameters[TYPE_PREFIX + form.fields[0].name] === form.fields[0].type);
|
|
142
|
+
assert(all_parameters[form.fields[1].name] === "Already Email");
|
|
143
|
+
assert(all_parameters[TYPE_PREFIX + form.fields[1].name] === form.fields[1].type);
|
|
144
|
+
assert(all_parameters[form.fields[2].name] === "Tiledesk");
|
|
145
|
+
assert(all_parameters[TYPE_PREFIX + form.fields[2].name] === form.fields[2].type);
|
|
146
|
+
// console.log("All params:", all_parameters);
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
it('basic form with 6 fields, 1st & 2nd pre-filled, 3rd not pre-filled, 4th (tel) pre-filled, 5th not pre-filled, 6th (age) pre-filled', async () => {
|
|
150
|
+
const form = {
|
|
151
|
+
"fields": [
|
|
152
|
+
{
|
|
153
|
+
"name": "userFullname",
|
|
154
|
+
"type": "string",
|
|
155
|
+
"label": "What is your name?"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "userEmail",
|
|
159
|
+
"type": "string",
|
|
160
|
+
"label": "What is your email?"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "companyName",
|
|
164
|
+
"type": "string",
|
|
165
|
+
"label": "Company name?"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "tel",
|
|
169
|
+
"type": "longString",
|
|
170
|
+
"label": "Your phone number?"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "SSN",
|
|
174
|
+
"type": "longString",
|
|
175
|
+
"label": "Your SSN?"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "age",
|
|
179
|
+
"type": "number",
|
|
180
|
+
"label": "Your age?"
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
const REQUEST_ID = "support-group-PROJECT_X-" + uuidv4().replace(/-/g, "");
|
|
186
|
+
|
|
187
|
+
const chatbot = new Chatbot();
|
|
188
|
+
await chatbot.addParameter('userFullname', "Already Andrea");
|
|
189
|
+
await chatbot.addParameter('userEmail', "Already Email");
|
|
190
|
+
await chatbot.addParameter('tel', "0000");
|
|
191
|
+
await chatbot.addParameter('age', "49");
|
|
192
|
+
|
|
193
|
+
let all_parameters = await chatbot.allParameters();
|
|
194
|
+
// console.log("executing intent form...")
|
|
195
|
+
let intentForm = new IntentForm(
|
|
196
|
+
{
|
|
197
|
+
form: form,
|
|
198
|
+
requestId: REQUEST_ID,
|
|
199
|
+
chatbot: chatbot,
|
|
200
|
+
requestParameters: all_parameters,
|
|
201
|
+
log: false
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
let form_reply1 = await intentForm.getMessage("Trigger message");
|
|
205
|
+
// console.log("Got form first field label:", form_reply1)
|
|
206
|
+
assert(form_reply1 !== null);
|
|
207
|
+
assert(!form_reply1.canceled);
|
|
208
|
+
assert(form_reply1.message.text === form.fields[2].label);
|
|
209
|
+
|
|
210
|
+
let form_reply2 = await intentForm.getMessage("Tiledesk");
|
|
211
|
+
// console.log("Got form 'companyName' field label:", form_reply2);
|
|
212
|
+
assert(form_reply2 !== null);
|
|
213
|
+
assert(!form_reply2.canceled);
|
|
214
|
+
assert(form_reply2.message);
|
|
215
|
+
assert(form_reply2.message.text === form.fields[4].label) // asks the next "editable" field's label (SSN)
|
|
216
|
+
assert(all_parameters[form.fields[2].name] === "Tiledesk");
|
|
217
|
+
assert(all_parameters[TYPE_PREFIX + form.fields[2].name] === form.fields[2].type);
|
|
218
|
+
|
|
219
|
+
let form_reply3 = await intentForm.getMessage("SPNNDR0000");
|
|
220
|
+
// console.log("Got form 'SSN' field label:", form_reply3);
|
|
221
|
+
assert(form_reply3 !== null);
|
|
222
|
+
assert(!form_reply3.canceled);
|
|
223
|
+
assert(form_reply3.end);
|
|
224
|
+
|
|
225
|
+
assert(all_parameters[form.fields[0].name] === "Already Andrea");
|
|
226
|
+
assert(all_parameters[TYPE_PREFIX + form.fields[0].name] === form.fields[0].type);
|
|
227
|
+
assert(all_parameters[form.fields[1].name] === "Already Email");
|
|
228
|
+
assert(all_parameters[TYPE_PREFIX + form.fields[1].name] === form.fields[1].type);
|
|
229
|
+
assert(all_parameters[form.fields[2].name] === "Tiledesk");
|
|
230
|
+
assert(all_parameters[TYPE_PREFIX + form.fields[2].name] === form.fields[2].type);
|
|
231
|
+
assert(all_parameters[form.fields[3].name] === "0000");
|
|
232
|
+
assert(all_parameters[TYPE_PREFIX + form.fields[3].name] === form.fields[3].type);
|
|
233
|
+
assert(all_parameters[form.fields[4].name] === "SPNNDR0000");
|
|
234
|
+
assert(all_parameters[TYPE_PREFIX + form.fields[4].name] === form.fields[4].type);
|
|
235
|
+
assert(all_parameters[form.fields[5].name] === "49");
|
|
236
|
+
assert(all_parameters[TYPE_PREFIX + form.fields[5].name] === form.fields[5].type);
|
|
237
|
+
// console.log("All params:", all_parameters);
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
class Chatbot {
|
|
243
|
+
|
|
244
|
+
constructor() {
|
|
245
|
+
this.tdcache = new MockTdCache();
|
|
246
|
+
this.requestParameters = {};
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
async addParameter(parameter_name, parameter_value) {
|
|
250
|
+
this.requestParameters[parameter_name] = parameter_value;
|
|
251
|
+
return true;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
async allParameters() {
|
|
255
|
+
return new Promise( (resolve) => {
|
|
256
|
+
resolve(this.requestParameters);
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
}
|
package/test/intent_form_test.js
CHANGED
package/test/single_test.sh
CHANGED
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
#npx mocha ./test/disable_input_text_directive_test.js
|
|
4
4
|
#npx mocha ./test/close_directive_test.js
|
|
5
5
|
#npx mocha ./test/conversation1-test.js --exit
|
|
6
|
-
|
|
7
|
-
npx mocha ./test/send_email_directive_test.js --exit
|
|
6
|
+
npx mocha ./test/intent_form_test.js --exit
|
|
7
|
+
#npx mocha ./test/send_email_directive_test.js --exit
|
|
8
|
+
#npx mocha ./test/intent_form_pre_filled_test.js --exit
|