This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/static/test/shims/window.shim.js
2017-01-06 21:27:54 -08:00

30 lines
648 B
JavaScript

// Add properties to window object used by 'app.js' to avoid test errors
window.__config = {
'SERVER_HOSTNAME': "",
'PREFERRED_URL_SCHEME': "",
};
window.__features = {};
window.__oauth = {
'GITHUB_TRIGGER_CONFIG': {
'CLIENT_ID': "",
'GITHUB_ENDPOINT': "",
'AUTHORIZE_ENDPOINT': "",
},
'GITLAB_TRIGGER_CONFIG': {
'CLIENT_ID': "",
'GITLAB_ENDPOINT': "",
'AUTHORIZE_ENDPOINT': "",
}
};
window.__endpoints = {
"/api/v1/user/": {
"get": {
"operationId": "getLoggedInUser",
"parameters": []
},
"x-name": "endpoints.api.user.User",
"x-path": "/api/v1/user/",
"x-tag": "user"
},
};