File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const Problem = require(appRoot + '/lib/util/problem');
77const { without } = require ( appRoot + '/lib/util/util' ) ;
88
99const defaults = {
10- // Properties that each test can set
10+ // Properties that each test can set to determine the behavior of the mock
1111
1212 // If `state` is set to 'error', the mock will pretend that Enketo has
1313 // misbehaved and will return a rejected promise for the next call.
@@ -19,7 +19,8 @@ const defaults = {
1919 // createOnceToken().
2020 token : undefined ,
2121
22- // Properties that may be updated after the mock is called
22+ // Properties that the mock may update after being called. These properties
23+ // are how the mock communicates back to the test.
2324
2425 // The total number of times that the mock has been called during the test
2526 callCount : 0 ,
You can’t perform that action at this time.
0 commit comments