Skip to content

Commit b04d7e1

Browse files
committed
upd: refactor test.js to spread options in axios post request
1 parent f099148 commit b04d7e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ process.on('unhandledRejection', err => { console.error(err); process.exit(1); }
2929
console.log(`Running scenario: ${name}`);
3030
let response;
3131
try {
32-
response = await axios.post(`${host}/task`, { script, options }, { timeout: 60000 });
32+
response = await axios.post(`${host}/task`, { script: script, ...options }, { timeout: 60000 });
3333
} catch (err) {
3434
console.error(`${name} failed: ${err}`);
3535
process.exit(1);

0 commit comments

Comments
 (0)