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:
Andrew Henry
2019-11-27 16:04:52 -08:00
committed by GitHub
parent 72e382c46a
commit c51fd21847
73 changed files with 3963 additions and 3757 deletions

View File

@@ -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"
}
]
}
});
};
});