From 52500f6097200862d90c33465daf96548e40dd03 Mon Sep 17 00:00:00 2001 From: Jamie Vigliotta Date: Tue, 11 Aug 2020 13:11:08 -0700 Subject: [PATCH] lint fixes --- src/plugins/ISOTimeFormat/ISOTimeFormat.js | 1 + src/plugins/ISOTimeFormat/plugin.js | 2 +- src/plugins/ISOTimeFormat/pluginSpec.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/ISOTimeFormat/ISOTimeFormat.js b/src/plugins/ISOTimeFormat/ISOTimeFormat.js index f2a4d5faf7..83f1bd3cc7 100644 --- a/src/plugins/ISOTimeFormat/ISOTimeFormat.js +++ b/src/plugins/ISOTimeFormat/ISOTimeFormat.js @@ -15,6 +15,7 @@ export default class ISOTimeFormat { if (typeof text === 'number' || text === undefined) { return text; } + return Date.parse(text); } diff --git a/src/plugins/ISOTimeFormat/plugin.js b/src/plugins/ISOTimeFormat/plugin.js index 78875f8a6b..b9dc4ed6d9 100644 --- a/src/plugins/ISOTimeFormat/plugin.js +++ b/src/plugins/ISOTimeFormat/plugin.js @@ -3,5 +3,5 @@ import ISOTimeFormat from './ISOTimeFormat'; export default function () { return function install(openmct) { openmct.telemetry.addFormat(new ISOTimeFormat()); - } + }; } diff --git a/src/plugins/ISOTimeFormat/pluginSpec.js b/src/plugins/ISOTimeFormat/pluginSpec.js index 13bbf5b7c0..457bd24f3b 100644 --- a/src/plugins/ISOTimeFormat/pluginSpec.js +++ b/src/plugins/ISOTimeFormat/pluginSpec.js @@ -36,7 +36,7 @@ describe("the plugin", () => { beforeAll(() => { resetApplicationState(); - }) + }); beforeEach((done) => { openmct = createOpenMct();