Skip to content

Commit 1bf1389

Browse files
committed
unlimited mock requests
1 parent f4929de commit 1bf1389

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

tests/setMocks.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,20 @@ function monkeyPatch(mockSrvClnt)
1212
}
1313

1414
mockSrvClnt.mockAnyResponse({
15-
'httpRequest': {
16-
'method': 'GET',
17-
'path': uri,
15+
httpRequest: {
16+
method: 'GET',
17+
path: uri,
1818
},
19-
'httpResponse': {
20-
'statusCode': 200,
21-
'body': fs.readFileSync(filePath, {encoding: "utf8"}),
22-
'headers': [{
23-
"name": "Content-Type",
24-
"values": ["text/html; charset=utf-8"]
19+
httpResponse: {
20+
statusCode: 200,
21+
body: fs.readFileSync(filePath, {encoding: "utf8"}),
22+
headers: [{
23+
name: "Content-Type",
24+
values: ["text/html; charset=utf-8"]
2525
}],
26+
},
27+
times: {
28+
unlimited: true
2629
}
2730
});
2831
};

0 commit comments

Comments
 (0)