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:
parent
d910eb153c
commit
a6f55ef400
@ -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 ?",
|
||||
|
@ -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`, () => {
|
||||
|
Loading…
Reference in New Issue
Block a user