MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / makeFakeHelper

Function makeFakeHelper

test/unit/session_composition_test.js:33–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33function 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
63describe('promise-core composition (characterization)', () => {
64 let helper

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected