Skip to content

poptocrack/fakeapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fakeapi

Usage

Add "fakeapi": "git+ssh://[email protected]:poptocrack/fakeapi.git", in package.json

Install packages with yarn or nmp i

import Api from 'fakeapi'

const res = await Api.ApiCall(<response>)

ApiCall is taking 1 arg:

It is the returned value (whatever makes sense in your case)

You can use Api.setMaxWaitTime(<time>) to make ApiCall goes faster.

3000 = 3s max wait time before response.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published