forked from testdouble/testdouble.js
Commits
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Commits on Oct 22, 2017
-
-
multiple levels of anon funcs: PAINFUL. Had to use a captor to spec it, then b/c of how much setup there was i ended up with two layers of beforeEach to DRY it. not happy rn
-
-
-
-
-
-
executePlan needed breakdown => too much indirect
Decided to pull up the imperative stuff to the satisfy/index instead * Stubbing now responsible for telling you its current outcome based on how many calls it's gotten * Stubbing now stores satisfying calls for easier traceability by td.explain (future proofing)
Commits on Oct 21, 2017
-
-
-
-
Remove satisfy() from stubbing store
I could not for the life of me figure out why app code was being invoked from a value object. Obviously it's a thing I (tell people to) avoid doing, but as I dove in I realized that this stupid unit test was also depending on this dummy implementation of satisfy() working in order to also pass. Not only was that unhelpful incidental coverage, it was obnoxious b/c I needed to delete that implementation to start driving out an actual satisfy() solution, and I didn't want to stare at this unrelated error.
-
-
-
this isCallback is public & shouldn't have been
Also it makes no sense why it's dangling on the matcher like that to begin with. It's only needed in a couple places to make sure we're looking at a callback matcher before we invoke one.
-
Commits on Oct 20, 2017
-
-
-
-
-
With double rewrite, imitate will use private API.
I suspect we'll move to a mode where every single layer of an imitation is mapped to a Double value, regardless of whether `fake` is a clone or a test double function. it'll allow us to say quite a lot more when td.explain()'ing. However, that's not something we have to solve right away (pre-relaunch)
-
Rewrite the td.function() rewrite
Key insight here was that the public API really shouldn't be the same as the private API, because we want to encourage passing around Double objects internally and only expose the fake externally. Additionally, the imitation module is doing a lot of the heavy lifting now and this isn't nearly as complicated as it was once going to be.
Commits on Sep 20, 2017
Commits on Sep 18, 2017
-
-
-
Merge pull request testdouble#239 from sgtoj/improve-ts
Improve TS Support
Commits on Sep 16, 2017
Commits on Sep 15, 2017
-
Brian Ojeda committed
Sep 15, 2017 -
Brian Ojeda committed
Sep 15, 2017
Commits on Sep 8, 2017
-
Merge pull request testdouble#287 from rosston/fix-faq-outline
Fix outline of FAQ in README
-