installed and configured karma test runner

This commit is contained in:
alecmerdler 2017-01-06 21:27:54 -08:00
parent e658941a43
commit b44665e75d
6 changed files with 144 additions and 10 deletions

View file

@ -0,0 +1,30 @@
// 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"
},
};