mirror of
https://github.com/ansible/awx.git
synced 2026-02-03 18:48:12 -03:30
Update unit tests.
This commit is contained in:
@@ -40,15 +40,12 @@ class APIClient {
|
||||
const data = `username=${un}&password=${pw}&next=${next}`;
|
||||
const headers = { 'Content-Type': LOGIN_CONTENT_TYPE };
|
||||
|
||||
try {
|
||||
await this.http.get(constant.API_LOGIN, { headers });
|
||||
await this.http.post(constant.API_LOGIN, data, { headers });
|
||||
} catch (err) {
|
||||
alert(`There was a problem logging in: ${err}`);
|
||||
}
|
||||
await this.http.get(constant.API_LOGIN, { headers });
|
||||
await this.http.post(constant.API_LOGIN, data, { headers });
|
||||
}
|
||||
|
||||
BaseGet = (endpoint) => this.http.get(endpoint);
|
||||
|
||||
}
|
||||
|
||||
export default new APIClient();
|
||||
|
||||
Reference in New Issue
Block a user