Skip to content

Instantly share code, notes, and snippets.

@Xedii Xedii/requestMock.js Secret
Created Dec 28, 2018

Embed
What would you like to do?
const requestMock = () => new Promise((resolve, reject) => {
setTimeout(() => {
resolve({
data: {
msg: 'success',
arr: [1,2,3,4,5,6]
},
code: "200"
});
}, 1 * 1000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.