Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios mock parameter

mock.onGet("/users", { params: { searchText: "John" } }).reply(200, {
  users: [{ id: 1, name: "John Smith" }],
});
 
PREVIOUS NEXT
Tagged: #axios #mock #parameter
ADD COMMENT
Topic
Name
6+5 =