ctimmerm

ctimmerm/axios-mock-adapter

Axios adapter that allows to easily mock requests

JavaScript
3510
253
MIT License
Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of ctimmerm/axios-mock-adapter

Account's avatar
Determine if an object is a Buffer
Account's avatar
Promise based HTTP client for the browser and node.js
Account's avatar
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
Account's avatar
simple, flexible, fun test framework
Account's avatar
the Istanbul command line interface
Account's avatar
TypeScript is a language for application scale JavaScript development
Account's avatar
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
Account's avatar
CLI for webpack & friends

Support the repos that depend on ctimmerm/axios-mock-adapter

Account's avatar
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
Account's avatar
A package for decent slider.
Account's avatar
Coinbase Platform SDK
Account's avatar
Shared utility functions for Cloak packages.
Account's avatar
Common development utility for creating a Flex plugin
Account's avatar
Common development utility for creating a Flex plugin
Account's avatar
The standard header for Open edX
Account's avatar
Repository implementation for Orbit Templates via HTTP
Account's avatar
A utility for comparing gas prices across multiple Ethereum networks
Account's avatar
Typed wrapper over DHIS2 API
Account's avatar
``` javascript npm i aio-apis ``` ### create apis class instance ``` javascript const MyLoader = () => { return '<div class="my-loading"></div>' } class Mock { Users_Get = (type) => { return [ {name:'name1',id:0}, {name:'name2',id:1}, {name:'name3',id:2} ] } } let props:I_apis_props = { id:'my app', baseUrl:'https://my-dev.com/ap/v1', //this is optional(default loader will work) //you can returns any jsx/html as loader loader:()=><MyLoader/>, //this function will call after request went to catch //in this case you should return an string error message to user onCatch:(err,apiConfig)=>{ if(err.response){ return err.response.message } else if(err.message){ return err.message } else { return 'unknown error' } }, //check all apis and if is error conditions return error message else return undefined //you can check is token valid or not in this function . if not valid you can call logout getError:(response,apiConfig)=>{ if(response.data.isSuccess === false){ return response.data.message } else if(response.status === 401){ logout() } }, //define apis in dictionary apis:{ Users_Get:{ //read User_Get from Mock class instance mockResult:true }, Users_Add:{ //optional //error messages of popups will create from this description //for example description:'adding user', //set api method method:'post', //set api url by baseUrl getUrl:(baseUrl)=>`${baseUrl}/Users/Add`,
Account's avatar
Client library for accessing the youtrack REST api
Account's avatar
FVI - Helper lib to axios http client
Account's avatar
Convenience package for discovering and buying assets on-chain and off-chain.
Account's avatar
This module is used by the desktop, web and Android versions of the MyLozzax wallet to facilitate the exchange of LOZZ into other cryptocurrencies via ChangeNow.
Account's avatar
A core library of ReactTS, MaterialUI components.

Top contributors

ctimmerm's profile
ctimmerm
200 contributions
marcbachmann's profile
marcbachmann
36 contributions
dependabot[bot]'s profile
dependabot[bot]
10 contributions
prashanth-92's profile
prashanth-92
8 contributions
danii-nebot's profile
danii-nebot
4 contributions
remcohaszing's profile
remcohaszing
4 contributions
cross311's profile
cross311
3 contributions
gilbsgilbs's profile
gilbsgilbs
3 contributions
koenpunt's profile
koenpunt
3 contributions
StarpTech's profile
StarpTech
3 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet