Skip to content

Commit 1c5a924

Browse files
committed
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)
1 parent 899060d commit 1c5a924

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/imitate/create-imitation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default (original, names) => {
1010
if (isGenerator(original)) {
1111
return original
1212
} else {
13+
// TODO: this will become src/function/create and include parent reference instead of name joining here
1314
return tdFunction(names.join('') || '(anonymous function)')
1415
}
1516
} else {

0 commit comments

Comments
 (0)