1
1
mirror of https://github.com/leon-ai/leon.git synced 2025-01-01 21:26:08 +03:00

test(server): fix language attribution before NLP testing

This commit is contained in:
Louistiti 2019-05-01 14:32:50 +08:00
parent d910eb153c
commit a6f55ef400
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
"Vérifies si amazon.com en ligne ou hors ligne"
],
"haveibeenpwned": [
"iifeoluwa.ao@gmail.com a-t-ele été pwned ?",
"iifeoluwa.ao@gmail.com a-t-elle été pwned ?",
"iifeoluwa.ao@gmail.com a-t-elle été compromise ?",
"iifeoluwa.ao@gmail.com a-t-elle été exposée à une brèche ?",
"iifeoluwa.ao@gmail.com est-elle toujours non compromise ?",

View File

@ -36,14 +36,14 @@ describe('NLU modules', () => {
brain.talk = jest.fn()
beforeAll(async () => {
process.env.LEON_LANG = langKeys[i]
// Generate new classifier for the tested language
await execa.shell(`npm run train expressions:${lang.short}`)
// Load the new classifier
await nlu.loadModel(global.paths.classifier)
})
process.env.LEON_LANG = langKeys[i]
for (let j = 0; j < packages.length; j += 1) {
// eslint-disable-next-line no-loop-func
describe(`${packages[j]} package`, () => {