Skip to content

Commit 66fb47c

Browse files
committed
think about this
1 parent 2aab416 commit 66fb47c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/satisfy/execute-plan.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
export default function executePlan () {
1+
export default function executePlan (double, call, stubbing) {
2+
// 1. get stubbed value
3+
// 2. stubbing.incrementSatisfactions()
4+
// 2a. invoke any callback matchers
5+
// 3. switch stubbing.type
6+
// case 'thenReturn': return value
7+
// case 'thenDo': return value.apply(actualContext, actualArgs)
8+
// case 'thenThrow': throw value
9+
// case 'thenResolve': return createPromise(stubbing, value, true)
10+
// case 'thenReject': return createPromise(stubbing, value, false)
211
}
312

0 commit comments

Comments
 (0)