Comments (1)
Hi @gamtiq, thanks for the note!
I think for the strict .not.to.have.been.called
case, I want to keep it just a simple boolean result by default. I do think there's room for a new assertion that exposes more of the info testdouble.js makes available, though. Maybe something like .to.have.been.called.(3).times
(but not exactly that syntax, probably).
I also see that chai
itself has some config variables that control how much data it prints out. I hadn't noticed those before; there's probably room to add our own config vars in testdouble-chai
to control the behavior you're talking about.
I'll leave this issue open as a reminder to think about that. In the meantime, if you need the extra data, I'd say just drop down to using td's own verify
. Hopefully I'll have a chance to add some stuff soon!
from testdouble-chai.
Related Issues (10)
- Does not actually work when installed as a dependency
- warnings with td 2.0.1 HOT 1
- Does not work with testdouble.js v3.0 HOT 2
- Assertions in tests should be fuzzier
- called() always fails with td.when().thenCallback() HOT 3
- Get those cool badges on the project page
- Remove required `peerDependency` on test double HOT 8
- calledWith format HOT 2
- CalledCount HOT 1
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 testdouble-chai.