Skip to content

Commit 465e0d3

Browse files
Zaporozhec7jamesdbloom
authored andcommitted
Convert function arguments to Array before making request
1 parent d48d1f8 commit 465e0d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mockServerClient.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,10 +625,14 @@ var mockServerClient;
625625
* @param arguments the list of expectation ids used to match requests for this verification to pass
626626
*/
627627
var verifySequenceById = function () {
628+
/**
629+
* Convert to array, because otherwise it JSON-encoded as object
630+
*/
631+
var expectationIds = Array.from(arguments);
628632
return {
629633
then: function (sucess, error) {
630634
return makeRequest(host, port, "/mockserver/verifySequence", {
631-
"expectationIds": arguments
635+
"expectationIds": expectationIds
632636
}).then(
633637
function () {
634638
if (sucess) {

0 commit comments

Comments
 (0)