diff --git a/server/services/usb/api/usb.controller.js b/server/services/usb/api/usb.controller.js index f62b70f4cb..ea456525c5 100644 --- a/server/services/usb/api/usb.controller.js +++ b/server/services/usb/api/usb.controller.js @@ -10,7 +10,7 @@ module.exports = function UsbController({ list }) { const ports = await list(); res.json( - ports.map(function(port) { + ports.map((port) => { return { comPath: port.path, comName: port.path, diff --git a/server/test/benchmark/triggers.js b/server/test/benchmark/triggers.js index d882261ff0..6be16af5ef 100644 --- a/server/test/benchmark/triggers.js +++ b/server/test/benchmark/triggers.js @@ -58,8 +58,8 @@ for (let i = 0; i < NUMBER_OF_LISTENERS; i += 1) { } } +// eslint-disable-next-line no-constant-condition while (1) { - // eslint-disable-line const start = process.hrtime(); EVENTS_TO_THROW.forEach((item, index) => { event.emit(item, {}); diff --git a/server/test/lib/gateway/GladysGatewayClientMock.test.js b/server/test/lib/gateway/GladysGatewayClientMock.test.js index 5344e5bfff..f3e2b75f94 100644 --- a/server/test/lib/gateway/GladysGatewayClientMock.test.js +++ b/server/test/lib/gateway/GladysGatewayClientMock.test.js @@ -1,7 +1,7 @@ const fs = require('fs'); const { fake } = require('sinon'); -const GladysGatewayClientMock = function() { +const GladysGatewayClientMock = function GladysGatewayClientMock() { return { login: fake.resolves({ two_factor_token: 'token',