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
Wit
Entity services
Get one entity by name
Should fetch an Entity:
Error: expected [Error: Not Found] to be falsy
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.ok (node_modules/expect.js/index.js:115:10)
at Function.ok (node_modules/expect.js/index.js:499:17)
at wit.entity.get.then.catch.e (test/test.js:53:31)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
Value services
Should add a value:
Error: expected [Error: expected [] to contain 'keywords'] to be falsy
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.ok (node_modules/expect.js/index.js:115:10)
at Function.ok (node_modules/expect.js/index.js:499:17)
at wit.value.add.then.catch.e (test/test.js:158:29)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
Expression services
Should remove an expression:
Error: expected [Error: expected { status: 400,
body: 'This entity needs at least one of keywords or trait lookup to be able to delete expressions',
code: 'bad-request' } to have a property 'deleted'] to be falsy
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.ok (node_modules/expect.js/index.js:115:10)
at Function.ok (node_modules/expect.js/index.js:499:17)
at wit.expression.delete.then.catch.e (test/test.js:192:29)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
Learning
Train using one sample at a time
Should yeild on a json response:
Error: expected [Error: expected [Error: You tried to create 'wit$greetings'. Use POST /entities instead] to be falsy] to be falsy
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.ok (node_modules/expect.js/index.js:115:10)
at Function.ok (node_modules/expect.js/index.js:499:17)
at wit.train.then.catch.e (test/test.js:246:31)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
Text messages
Test on a learned text
Should respond by an Intent Object:
Error: expected [Error: expected {} to not be empty] to be falsy
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.ok (node_modules/expect.js/index.js:115:10)
at Function.ok (node_modules/expect.js/index.js:499:17)
at wit.message.then.catch.e (test/test.js:283:31)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
Text messages
Test on a forgotten text
Should respond by an Intent Object containing greeting:
Error: expected [Error: expected {} to not be empty] to be falsy
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.ok (node_modules/expect.js/index.js:115:10)
at Function.ok (node_modules/expect.js/index.js:499:17)
at wit.message.then.catch.e (test/test.js:301:31)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
Speech
Should respond by an Intent Object:
Error: expected [Error: expected 'Hello' to equal 'hello'] to be falsy
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.ok (node_modules/expect.js/index.js:115:10)
at Function.ok (node_modules/expect.js/index.js:499:17)
at wit.speech.then.catch.e (test/test.js:319:29)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
App Management
Delete an App
The latest wit instance shall not work
Should trigger error:
Error: expected [Error: expected { name: 'intent',
id: '5b73fa2b-cf19-4591-a653-eb78a8dc719f',
values: [],
builtin: false,
doc: 'User-defined entity',
lang: 'en',
lookups: [ 'trait' ],
request: [Function] } to be falsy] to have a property 'code'
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.property (node_modules/expect.js/index.js:381:12)
at newWit.entity.get.then.catch.e (test/test.js:406:31)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
Error handeling
Api fails
Should fail & return Error instance with a message and code props:
Error: expected 'no-auth' to equal 'unknown'
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.be.Assertion.equal (node_modules/expect.js/index.js:216:10)
at Assertion.(anonymous function) [as be] (node_modules/expect.js/index.js:69:24)
at defectedWit.entity.list.then.catch.e (test/test.js:424:29)
at process._tickCallback (internal/process/next_tick.js:109:7)
Running unit tests returns :
17 --------------,------,
9 --------------| /_/\
0 --------------^|__( x .x)
-------------- "" ""
17 passing (43s)
9 failing
Wit
Entity services
Get one entity by name
Should fetch an Entity:
Error: expected [Error: Not Found] to be falsy
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.ok (node_modules/expect.js/index.js:115:10)
at Function.ok (node_modules/expect.js/index.js:499:17)
at wit.entity.get.then.catch.e (test/test.js:53:31)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
Value services
Should add a value:
Error: expected [Error: expected [] to contain 'keywords'] to be falsy
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.ok (node_modules/expect.js/index.js:115:10)
at Function.ok (node_modules/expect.js/index.js:499:17)
at wit.value.add.then.catch.e (test/test.js:158:29)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
Expression services
Should remove an expression:
Error: expected [Error: expected { status: 400,
body: 'This entity needs at least one of keywords or trait lookup to be able to delete expressions',
code: 'bad-request' } to have a property 'deleted'] to be falsy
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.ok (node_modules/expect.js/index.js:115:10)
at Function.ok (node_modules/expect.js/index.js:499:17)
at wit.expression.delete.then.catch.e (test/test.js:192:29)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
Learning
Train using one sample at a time
Should yeild on a json response:
Error: expected [Error: expected [Error: You tried to create 'wit$greetings'. Use POST /entities instead] to be falsy] to be falsy
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.ok (node_modules/expect.js/index.js:115:10)
at Function.ok (node_modules/expect.js/index.js:499:17)
at wit.train.then.catch.e (test/test.js:246:31)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
Text messages
Test on a learned text
Should respond by an Intent Object:
Error: expected [Error: expected {} to not be empty] to be falsy
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.ok (node_modules/expect.js/index.js:115:10)
at Function.ok (node_modules/expect.js/index.js:499:17)
at wit.message.then.catch.e (test/test.js:283:31)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
Text messages
Test on a forgotten text
Should respond by an Intent Object containing greeting:
Error: expected [Error: expected {} to not be empty] to be falsy
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.ok (node_modules/expect.js/index.js:115:10)
at Function.ok (node_modules/expect.js/index.js:499:17)
at wit.message.then.catch.e (test/test.js:301:31)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
Speech
Should respond by an Intent Object:
Error: expected [Error: expected 'Hello' to equal 'hello'] to be falsy
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.ok (node_modules/expect.js/index.js:115:10)
at Function.ok (node_modules/expect.js/index.js:499:17)
at wit.speech.then.catch.e (test/test.js:319:29)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
App Management
Delete an App
The latest wit instance shall not work
Should trigger error:
Error: expected [Error: expected { name: 'intent',
id: '5b73fa2b-cf19-4591-a653-eb78a8dc719f',
values: [],
builtin: false,
doc: 'User-defined entity',
lang: 'en',
lookups: [ 'trait' ],
request: [Function] } to be falsy] to have a property 'code'
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.property (node_modules/expect.js/index.js:381:12)
at newWit.entity.get.then.catch.e (test/test.js:406:31)
at process._tickCallback (internal/process/next_tick.js:109:7)
Wit
Error handeling
Api fails
Should fail & return Error instance with a message and code props:
Error: expected 'no-auth' to equal 'unknown'
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.be.Assertion.equal (node_modules/expect.js/index.js:216:10)
at Assertion.(anonymous function) [as be] (node_modules/expect.js/index.js:69:24)
at defectedWit.entity.list.then.catch.e (test/test.js:424:29)
at process._tickCallback (internal/process/next_tick.js:109:7)
-----------------|----------|----------|----------|----------|-------------------|
The text was updated successfully, but these errors were encountered: