Experimental unit tests for the Telemetry Table component (#2533)
* Initial commit of telemetry table spec * Added example directory to linter paths. Fixed outstanding linting issues
This commit is contained in:
@@ -26,104 +26,105 @@ define([
|
||||
"./src/TelemetryCapability",
|
||||
"./src/TelemetryFormatter",
|
||||
"./src/TelemetrySubscriber",
|
||||
"./src/TelemetryHandler",
|
||||
'legacyRegistry'
|
||||
"./src/TelemetryHandler"
|
||||
], function (
|
||||
TelemetryAggregator,
|
||||
TelemetryController,
|
||||
TelemetryCapability,
|
||||
TelemetryFormatter,
|
||||
TelemetrySubscriber,
|
||||
TelemetryHandler,
|
||||
legacyRegistry
|
||||
TelemetryHandler
|
||||
) {
|
||||
|
||||
legacyRegistry.register("platform/telemetry", {
|
||||
"name": "Data bundle",
|
||||
"description": "Interfaces and infrastructure for real-time and historical data",
|
||||
"configuration": {
|
||||
"paths": {
|
||||
"moment": "moment.min"
|
||||
return {
|
||||
name:"platform/telemetry",
|
||||
definition: {
|
||||
"name": "Data bundle",
|
||||
"description": "Interfaces and infrastructure for real-time and historical data",
|
||||
"configuration": {
|
||||
"paths": {
|
||||
"moment": "moment.min"
|
||||
},
|
||||
"shim": {
|
||||
"moment": {
|
||||
"exports": "moment"
|
||||
}
|
||||
}
|
||||
},
|
||||
"shim": {
|
||||
"moment": {
|
||||
"exports": "moment"
|
||||
}
|
||||
"extensions": {
|
||||
"components": [
|
||||
{
|
||||
"provides": "telemetryService",
|
||||
"type": "aggregator",
|
||||
"implementation": TelemetryAggregator,
|
||||
"depends": [
|
||||
"$q"
|
||||
]
|
||||
}
|
||||
],
|
||||
"controllers": [
|
||||
{
|
||||
"key": "TelemetryController",
|
||||
"implementation": TelemetryController,
|
||||
"depends": [
|
||||
"$scope",
|
||||
"$q",
|
||||
"$timeout",
|
||||
"$log"
|
||||
]
|
||||
}
|
||||
],
|
||||
"capabilities": [
|
||||
{
|
||||
"key": "telemetry",
|
||||
"implementation": TelemetryCapability,
|
||||
"depends": [
|
||||
"openmct",
|
||||
"$injector",
|
||||
"$q",
|
||||
"$log"
|
||||
]
|
||||
}
|
||||
],
|
||||
"services": [
|
||||
{
|
||||
"key": "telemetryFormatter",
|
||||
"implementation": TelemetryFormatter,
|
||||
"depends": [
|
||||
"formatService",
|
||||
"DEFAULT_TIME_FORMAT"
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "telemetrySubscriber",
|
||||
"implementation": TelemetrySubscriber,
|
||||
"depends": [
|
||||
"$q",
|
||||
"$timeout"
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "telemetryHandler",
|
||||
"implementation": TelemetryHandler,
|
||||
"depends": [
|
||||
"$q",
|
||||
"telemetrySubscriber"
|
||||
]
|
||||
}
|
||||
],
|
||||
"licenses": [
|
||||
{
|
||||
"name": "Moment.js",
|
||||
"version": "2.11.1",
|
||||
"author": "Tim Wood, Iskren Chernev, Moment.js contributors",
|
||||
"description": "Time/date parsing/formatting",
|
||||
"website": "http://momentjs.com",
|
||||
"copyright": "Copyright (c) 2011-2014 Tim Wood, Iskren Chernev, Moment.js contributors",
|
||||
"license": "license-mit",
|
||||
"link": "https://raw.githubusercontent.com/moment/moment/develop/LICENSE"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"extensions": {
|
||||
"components": [
|
||||
{
|
||||
"provides": "telemetryService",
|
||||
"type": "aggregator",
|
||||
"implementation": TelemetryAggregator,
|
||||
"depends": [
|
||||
"$q"
|
||||
]
|
||||
}
|
||||
],
|
||||
"controllers": [
|
||||
{
|
||||
"key": "TelemetryController",
|
||||
"implementation": TelemetryController,
|
||||
"depends": [
|
||||
"$scope",
|
||||
"$q",
|
||||
"$timeout",
|
||||
"$log"
|
||||
]
|
||||
}
|
||||
],
|
||||
"capabilities": [
|
||||
{
|
||||
"key": "telemetry",
|
||||
"implementation": TelemetryCapability,
|
||||
"depends": [
|
||||
"openmct",
|
||||
"$injector",
|
||||
"$q",
|
||||
"$log"
|
||||
]
|
||||
}
|
||||
],
|
||||
"services": [
|
||||
{
|
||||
"key": "telemetryFormatter",
|
||||
"implementation": TelemetryFormatter,
|
||||
"depends": [
|
||||
"formatService",
|
||||
"DEFAULT_TIME_FORMAT"
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "telemetrySubscriber",
|
||||
"implementation": TelemetrySubscriber,
|
||||
"depends": [
|
||||
"$q",
|
||||
"$timeout"
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "telemetryHandler",
|
||||
"implementation": TelemetryHandler,
|
||||
"depends": [
|
||||
"$q",
|
||||
"telemetrySubscriber"
|
||||
]
|
||||
}
|
||||
],
|
||||
"licenses": [
|
||||
{
|
||||
"name": "Moment.js",
|
||||
"version": "2.11.1",
|
||||
"author": "Tim Wood, Iskren Chernev, Moment.js contributors",
|
||||
"description": "Time/date parsing/formatting",
|
||||
"website": "http://momentjs.com",
|
||||
"copyright": "Copyright (c) 2011-2014 Tim Wood, Iskren Chernev, Moment.js contributors",
|
||||
"license": "license-mit",
|
||||
"link": "https://raw.githubusercontent.com/moment/moment/develop/LICENSE"
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user