Skip to content

Commit e79f460

Browse files
committed
Added test for axios methods.
In particular for `postForm` `putForm` `patchForm` `getUri`.
1 parent 9d3d3de commit e79f460

File tree

1 file changed

+9
-0
lines changed
  • javascript/ql/test/library-tests/frameworks/ClientRequests

1 file changed

+9
-0
lines changed

javascript/ql/test/library-tests/frameworks/ClientRequests/tst.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,12 @@ function gotTests(url){
339339
const jsonClient2 = got.extend({url: url}).extend({url: url});
340340
jsonClient2.get();
341341
}
342+
343+
function moreAxiosTests(url, data, config){
344+
axios.postForm(url, data, config); // not flagged
345+
axios.putForm(url, data); // not flagged
346+
axios.putForm(url, data, config); // not flagged
347+
axios.patchForm(url, data); // not flagged
348+
axios.patchForm(url, data, config); // not flagged
349+
axios.getUri({ url: url }); // not flagged
350+
}

0 commit comments

Comments
 (0)