From 5efc3f15f20cb09af3946dad54341176c5720853 Mon Sep 17 00:00:00 2001 From: d98762625 Date: Thu, 3 May 2018 13:58:15 +0100 Subject: [PATCH] linting --- src/node/apiUtils.mjs | 8 ++++---- test/tests/assertionHandler.mjs | 4 +--- test/tests/nodeApi/nodeApi.mjs | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/node/apiUtils.mjs b/src/node/apiUtils.mjs index f2f8db1f..52ea55e0 100644 --- a/src/node/apiUtils.mjs +++ b/src/node/apiUtils.mjs @@ -76,8 +76,8 @@ export function wrap(Operation) { /** * First draft - * @param input - * @param type + * @param input + * @param type */ export async function translateTo(input, type) { const dish = new Dish(); @@ -89,8 +89,8 @@ export async function translateTo(input, type) { } /** - * - * @param searchTerm + * + * @param searchTerm */ export function search(searchTerm) { diff --git a/test/tests/assertionHandler.mjs b/test/tests/assertionHandler.mjs index 6bf236c6..3d6ae9e0 100644 --- a/test/tests/assertionHandler.mjs +++ b/test/tests/assertionHandler.mjs @@ -9,8 +9,6 @@ * @license Apache-2.0 */ -import assert from "assert"; - /** * it - wrapper for assertions to provide a helpful description * to the TestRegister @@ -27,7 +25,7 @@ import assert from "assert"; * assert.equal(1,1) * assert.notEqual(3,4) * }) - * + * * @example * // async assertions * it("should handle async", async () => { diff --git a/test/tests/nodeApi/nodeApi.mjs b/test/tests/nodeApi/nodeApi.mjs index b1d92350..c6215a63 100644 --- a/test/tests/nodeApi/nodeApi.mjs +++ b/test/tests/nodeApi/nodeApi.mjs @@ -35,7 +35,7 @@ TestRegister.addApiTests([ try { const fail = chef.setUnion("1"); // shouldnt get here - assert(false); + assert(!fail || false); } catch (e) { assert(true); }