You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
leterrorMsg=`Invalid utterance line, entity name ${entity.entity} in this utterance cannot contain any of the following characters: [<, >, *, %, &, :, \\, $]`;
leterrorMsg=`Invalid child entity definition found for "${child.trim()}". Child definitions must start with '- @' and only include a type, name and optionally one or more usesFeature(s) definition.`;
assert.isTrue(err.text.includes('[ERROR] line 2:0 - line 2:26: Invalid utterance line, entity name @addto*Property cannot contain any of the following characters: [<, >, *, %, &, :, \\, $]'))
260
-
assert.isTrue(err.text.includes('[ERROR] line 4:0 - line 4:20: Invalid entity line, entity name delete$Property cannot contain any of the following characters: [<, >, *, %, &, :, \\, $]'))
275
+
assert.isTrue(err.text.includes('[ERROR] line 2:0 - line 2:26: Invalid utterance line, entity name @addto*Property in this utterance cannot contain any of the following characters: [<, >, *, %, &, :, \\, $]'))
276
+
done()
277
+
})
278
+
})
279
+
})
280
+
281
+
it('luis:convert should show ERR message when entity name defined at top level contains invalid char',(done)=>{
282
+
loadLuFile('./../../fixtures/testcases/bad6.lu')
283
+
.then(res=>{
284
+
LuisBuilder.fromLUAsync(res)
285
+
.then(res=>done(res))
286
+
.catch(err=>{
287
+
assert.isTrue(err.text.includes('[ERROR] line 1:0 - line 1:1: Invalid entity line, entity name location* cannot contain any of the following characters: [<, >, *, %, &, :, \\, $]'))
288
+
done()
289
+
})
290
+
})
291
+
})
292
+
293
+
it('luis:convert should show ERR message when intent name contains invalid char',(done)=>{
294
+
loadLuFile('./../../fixtures/testcases/bad7.lu')
295
+
.then(res=>{
296
+
LuisBuilder.fromLUAsync(res)
297
+
.then(res=>done(res))
298
+
.catch(err=>{
299
+
assert.isTrue(err.text.includes('[ERROR] line 1:0 - line 1:1: Invalid intent line, intent name greeting* cannot contain any of the following characters: [<, >, *, %, &, :, \\, $]'))
300
+
done()
301
+
})
302
+
})
303
+
})
304
+
305
+
it('luis:convert should show ERR message when phraselist name contains invalid char',(done)=>{
306
+
loadLuFile('./../../fixtures/testcases/bad8.lu')
307
+
.then(res=>{
308
+
LuisBuilder.fromLUAsync(res)
309
+
.then(res=>done(res))
310
+
.catch(err=>{
311
+
assert.isTrue(err.text.includes('[ERROR] line 1:0 - line 1:1: Invalid phraselist line, phraselist name pl* can only contain letters (a-z, A-Z), numbers (0-9) and symbols @ # _ . , ^ \\ [ ]'))
0 commit comments