Comments (6)
Hi @vforv I checked your code and I found out that you never called the callback from server method { topic: 'user', cmd: 'login' }
search for cb
and you can find it only once.
from hemera-testsuite.
@StarpTech I forgot to add cb when I was the reproducting error... But it is not an issue... I update code same error still occurs, you can see when you run code first action never run...
from hemera-testsuite.
Remove in both stubs the objects and it works. actStub expect a schema.
// stub act calls
actStub.stub({
topic: 'mongo-store',
cmd: 'find',
collection: 'users',
//query: { email: '[email protected]' }
}, null, { result: [] })
actStub.stub({
topic: 'mongo-store',
cmd: 'create',
collection: 'users',
//data: userData
}, null, "Mail sent")
from hemera-testsuite.
@vforv I will think about the current behavior. It should be possible to mock the exact pattern.
from hemera-testsuite.
Hi @vforv I revert my old changes and released [email protected]. I tested with your repo and everything works great.
from hemera-testsuite.
Great, thank you. It works now but I have another problem. I will close this issue and open a new one.
from hemera-testsuite.
Related Issues (9)
- 2.0.3 version not working for me HOT 2
- ECONNREFUSED 127.0.0.1:4222 HOT 12
- Hapi hemera testsuite Timeout error HOT 22
- Testing with real NATS Server connection HOT 1
- Fatal error after test run HOT 1
- How to mock actions inside other actions? HOT 13
- hemera test fails for async/await HOT 7
- How to stub functions inside actions? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hemera-testsuite.