From 5ef55518e1c729449c0e4c0901318772057a596f Mon Sep 17 00:00:00 2001 From: Hasan Eroglu Date: Thu, 4 Jul 2024 17:07:00 +0300 Subject: [PATCH] chore(td-utils): run prettier Signed-off-by: Hasan Eroglu --- node/td-utils/test/examples/httpAndMqtt.json | 2 +- node/td-utils/test/examples/noProtocol.json | 2 +- node/td-utils/test/examples/onlyHttp.json | 2 +- node/td-utils/test/examples/onlyMqtt.json | 2 +- .../test/examples/secureProtocols.json | 2 +- node/td-utils/test/protocol-detection.test.ts | 34 +++++++++---------- 6 files changed, 22 insertions(+), 22 deletions(-) diff --git a/node/td-utils/test/examples/httpAndMqtt.json b/node/td-utils/test/examples/httpAndMqtt.json index d931e1f..2feb331 100644 --- a/node/td-utils/test/examples/httpAndMqtt.json +++ b/node/td-utils/test/examples/httpAndMqtt.json @@ -30,4 +30,4 @@ "port": 1234 } ] -} \ No newline at end of file +} diff --git a/node/td-utils/test/examples/noProtocol.json b/node/td-utils/test/examples/noProtocol.json index 53d6462..2ba85d3 100644 --- a/node/td-utils/test/examples/noProtocol.json +++ b/node/td-utils/test/examples/noProtocol.json @@ -11,4 +11,4 @@ "actions": {}, "events": {}, "protocolSchemes": [] -} \ No newline at end of file +} diff --git a/node/td-utils/test/examples/onlyHttp.json b/node/td-utils/test/examples/onlyHttp.json index c3c4ee7..6d7bda2 100644 --- a/node/td-utils/test/examples/onlyHttp.json +++ b/node/td-utils/test/examples/onlyHttp.json @@ -41,4 +41,4 @@ "port": 4214 } ] -} \ No newline at end of file +} diff --git a/node/td-utils/test/examples/onlyMqtt.json b/node/td-utils/test/examples/onlyMqtt.json index 0fcc635..e72eea7 100644 --- a/node/td-utils/test/examples/onlyMqtt.json +++ b/node/td-utils/test/examples/onlyMqtt.json @@ -35,4 +35,4 @@ "hostname": "mylamp.example.com" } ] -} \ No newline at end of file +} diff --git a/node/td-utils/test/examples/secureProtocols.json b/node/td-utils/test/examples/secureProtocols.json index 95762ff..be9c2cb 100644 --- a/node/td-utils/test/examples/secureProtocols.json +++ b/node/td-utils/test/examples/secureProtocols.json @@ -29,4 +29,4 @@ "hostname": "mylamp.example.com" } ] -} \ No newline at end of file +} diff --git a/node/td-utils/test/protocol-detection.test.ts b/node/td-utils/test/protocol-detection.test.ts index 64eabd9..926419a 100644 --- a/node/td-utils/test/protocol-detection.test.ts +++ b/node/td-utils/test/protocol-detection.test.ts @@ -13,35 +13,35 @@ * SPDX-License-Identifier: EPL-2.0 OR W3C-20150513 */ import { detectProtocolSchemes, ProtocolScheme } from "../src/detectProtocolSchemes"; -import { ThingDescription } from 'wot-thing-description-types'; -import httpAndMqtt from './examples/httpAndMqtt.json'; -import noProtocol from './examples/noProtocol.json'; -import onlyHttp from './examples/onlyHttp.json' -import onlyMqtt from './examples/onlyMqtt.json' -import secureProtocols from './examples/secureProtocols.json' +import { ThingDescription } from "wot-thing-description-types"; +import httpAndMqtt from "./examples/httpAndMqtt.json"; +import noProtocol from "./examples/noProtocol.json"; +import onlyHttp from "./examples/onlyHttp.json"; +import onlyMqtt from "./examples/onlyMqtt.json"; +import secureProtocols from "./examples/secureProtocols.json"; export type ThingDescriptionTest = ThingDescription & { protocolSchemes: ProtocolScheme[] }; describe("test examples", () => { it("should test httpAndMqtt", () => { - testTD(httpAndMqtt) - }) + testTD(httpAndMqtt); + }); it("should test noProtocol", () => { - testTD(noProtocol) - }) + testTD(noProtocol); + }); it("should test onlyHttp", () => { - testTD(onlyHttp) - }) + testTD(onlyHttp); + }); it("should test onlyMqtt", () => { - testTD(onlyMqtt) - }) + testTD(onlyMqtt); + }); it("should test secureProtocols", () => { - testTD(secureProtocols) - }) + testTD(secureProtocols); + }); }); const testTD = (td: any) => { @@ -51,4 +51,4 @@ const testTD = (td: any) => { td.protocolSchemes.forEach((s: ProtocolScheme) => { expect(detectedProtocolSchemes).toContainEqual(s); }); -}; \ No newline at end of file +};