Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function makeRequest(){
- const auth0BaseURL = Config.AUTH_URL
- const mock = { username: 'test03@222222.com', password: 'password!test', deviceTesting: true }
- const data = {'client_id': Config.AUTH_CLIENT, 'username': mock.username, 'password': mock.password, 'connection': '', 'device': 'testdevice', 'scope': ''}
- const api = apisauce.create({
- baseURL: authBaseURL,
- headers: {'content-type': 'application/json'},
- timeout: 100000
- })
- debugger
- var response = api.post('/auth/test', data, api.headers)
- debugger
- return response
- }
- test('signup:Success', async t => {
- t.plan(1);
- const res = await makeRequest()
- debugger
- t.is(res.status, 200);
- });
- Error: Promise returned by test never resolved\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement