Commits
master
Name already in use
Commits on Jun 8, 2019
-
Merge pull request testdouble#417 from testdouble/mutable-verify
add cloneArgs option to td.when/td.verify
-
Now that we cloneArgs, use those to explain calls
This means that if an arg is mutated, users will see the real one for recorded invocation. Fixes testdouble#375
-
Add
cloneArgs
option for when/verify mutationsThis config option makes it possible to stub & verify values that are mutated at some point by checking whether args match by value as opposed to reference Fixes testdouble#416
Commits on Feb 24, 2019
Commits on Feb 13, 2019
Commits on Feb 4, 2019
Commits on Feb 3, 2019
-
-
-
-
-
-
-
Merge branch 'deeplyNestedProxyObjects' of git://github.com/lgandecki…
…/testdouble.js into lgandecki-deeplyNestedProxyObjects
Commits on Feb 2, 2019
-
-
-
Print the children of test doubles
Some imitated functions (esp constructors) will have child props that are themselves test doubles, so we should recursively print their children, too
-
-
Change td.explain() to return a deep explainy clone
After reading the spec, I came to a different opinion about how objects should be handled. In particular, it seems to me that printing deeply nested children under a `children` property, while still having the top-level object "quack" like anything else passed to `td.explain()` seemed like the best balance of new information with compatibility/consistency. Relatedly, the attempt to uncover deeply-nested items would require way too much edge-case handling for this function to do on its own (see the implementation of td.imitate() for how many dragons are involved). To accomplish a recursive clone, this change pulls in _.cloneDeepWith and passes a transformer func for the case that a function is visited. Test double functions are explained and non test double functions are given a null descriptor where isTestDouble returns false. I changed the tests to express all this in the minimum number of test cases while maximally asserting everything that is returned by `td.explain`.
-
-
reduce indirection, update names
Just trying to understand what this is doing. A command pattern seemed not helpful
-
-
Merge branch 'explain-object' of git://github.com/robwold/testdouble.…
…js into robwold-explain-object
Commits on Jan 29, 2019
-
Merge pull request testdouble#405 from testdouble/chore/remove-map-de…
…pendency Remove unnecessary dependency on es6-map.
-
Commits on Jan 22, 2019
-
Merge pull request testdouble#404 from jasonmit/patch-1
docs: Correct broken link to testdouble-qunit
-
-
Commits on Jan 17, 2019
-
added test that verifies the proper reset behavior, removed unnecessa…
…ry __mocks__ scratchpad