[Testing] Add better dependency injection and error handling

This commit is contained in:
David Hudson
2016-09-04 19:19:14 +09:00
parent a566265a72
commit 9bb647e275
3 changed files with 68 additions and 44 deletions

View File

@ -92,7 +92,13 @@ define([
{
"key": "ExportImageService",
"implementation": ExportImageService,
"depends": []
"depends": [
"$q",
"$timeout",
"$log",
"EXPORT_IMAGE_TIMEOUT"
]
}
],
"constants": [
@ -101,6 +107,11 @@ define([
"value": 900000,
"priority": "fallback",
"comment": "Fifteen minutes."
},
{
"key": "EXPORT_IMAGE_TIMEOUT",
"value": 500,
"priority": "fallback"
}
],
"policies": [