mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-19 14:52:21 +03:00
test(server): fix units to introduce modules actions
This commit is contained in:
parent
b449376f61
commit
352c39a46b
@ -43,7 +43,8 @@ class Synchronizer {
|
|||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
this.brain.socket.emit('download', {
|
this.brain.socket.emit('download', {
|
||||||
package: this.classification.package,
|
package: this.classification.package,
|
||||||
module: this.classification.module
|
module: this.classification.module,
|
||||||
|
action: this.classification.action
|
||||||
})
|
})
|
||||||
|
|
||||||
resolve()
|
resolve()
|
||||||
|
@ -71,6 +71,7 @@ describe('brain', () => {
|
|||||||
classification: {
|
classification: {
|
||||||
package: 'leon',
|
package: 'leon',
|
||||||
module: 'greeting',
|
module: 'greeting',
|
||||||
|
action: 'run',
|
||||||
confidence: 0.9
|
confidence: 0.9
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -97,6 +98,7 @@ describe('brain', () => {
|
|||||||
classification: {
|
classification: {
|
||||||
package: 'checker',
|
package: 'checker',
|
||||||
module: 'isitdown',
|
module: 'isitdown',
|
||||||
|
action: 'run',
|
||||||
confidence: 0.9
|
confidence: 0.9
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -116,6 +118,7 @@ describe('brain', () => {
|
|||||||
classification: {
|
classification: {
|
||||||
package: 'leon',
|
package: 'leon',
|
||||||
module: 'greeting',
|
module: 'greeting',
|
||||||
|
action: 'run',
|
||||||
confidence: 0.9
|
confidence: 0.9
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user