1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-18 14:21:32 +03:00

test(server): fix units to introduce modules actions

This commit is contained in:
Louistiti 2019-05-04 08:48:59 +08:00
parent b449376f61
commit 352c39a46b
2 changed files with 5 additions and 1 deletions

View File

@ -43,7 +43,8 @@ class Synchronizer {
return new Promise((resolve) => {
this.brain.socket.emit('download', {
package: this.classification.package,
module: this.classification.module
module: this.classification.module,
action: this.classification.action
})
resolve()

View File

@ -71,6 +71,7 @@ describe('brain', () => {
classification: {
package: 'leon',
module: 'greeting',
action: 'run',
confidence: 0.9
}
}
@ -97,6 +98,7 @@ describe('brain', () => {
classification: {
package: 'checker',
module: 'isitdown',
action: 'run',
confidence: 0.9
}
}
@ -116,6 +118,7 @@ describe('brain', () => {
classification: {
package: 'leon',
module: 'greeting',
action: 'run',
confidence: 0.9
}
}