Created
May 19, 2017 20:14
-
-
Save seacloud9/38f79278d62ed8ceb2370f137d6c42ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\ |
Author
seacloud9
commented
May 19, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment