Skip to content

Commit 51cf155

Browse files
committed
Added test for axios methods.
In particular for `postForm` `putForm` `patchForm` `getUri`.
1 parent 7bd1c4d commit 51cf155

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
@@ -320,3 +320,12 @@ function useSuperagent(url){
320320
superagent.del(url);
321321
superagent.agent().post(url).send(data);
322322
}
323+
324+
function moreAxiosTests(url, data, config){
325+
axios.postForm(url, data, config); // not flagged
326+
axios.putForm(url, data); // not flagged
327+
axios.putForm(url, data, config); // not flagged
328+
axios.patchForm(url, data); // not flagged
329+
axios.patchForm(url, data, config); // not flagged
330+
axios.getUri({ url: url }); // not flagged
331+
}

0 commit comments

Comments
 (0)