()
| 31 | } |
| 32 | |
| 33 | function makeFakeHelper() { |
| 34 | const calls = { start: 0, stop: 0, loadVars: 0, restoreVars: 0, withinBegin: 0, withinEnd: 0 } |
| 35 | return { |
| 36 | calls, |
| 37 | _session() { |
| 38 | return { |
| 39 | start: async () => { |
| 40 | calls.start++ |
| 41 | return { token: 'vars' } |
| 42 | }, |
| 43 | stop: async () => { |
| 44 | calls.stop++ |
| 45 | }, |
| 46 | loadVars: async () => { |
| 47 | calls.loadVars++ |
| 48 | }, |
| 49 | restoreVars: async () => { |
| 50 | calls.restoreVars++ |
| 51 | }, |
| 52 | } |
| 53 | }, |
| 54 | async _withinBegin() { |
| 55 | calls.withinBegin++ |
| 56 | }, |
| 57 | async _withinEnd() { |
| 58 | calls.withinEnd++ |
| 59 | }, |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | describe('promise-core composition (characterization)', () => { |
| 64 | let helper |
no outgoing calls
no test coverage detected