Skip to content

Commit 18ced38

Browse files
committed
Update comments about enketo mock in testing
1 parent 82ea6cb commit 18ced38

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/util/enketo.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const Problem = require(appRoot + '/lib/util/problem');
77
const { without } = require(appRoot + '/lib/util/util');
88

99
const 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,

0 commit comments

Comments
 (0)