Added prettier standard to support prettier and use it in combination with standard
[poolifier.git] / tests / fixed.test.js
index 2ed97444bdb94a98f793f1833d027c0070f4b14b..604ef80c0e0901740eb658576c465c66a3d350d3 100644 (file)
@@ -1,12 +1,16 @@
 const expect = require('expect')
 const FixedThreadPool = require('../lib/fixed')
 const numThreads = 10
-const pool = new FixedThreadPool(numThreads,
-  './tests/workers/testWorker.js',
-  { errorHandler: (e) => console.error(e), onlineHandler: () => console.log('worker is online') })
+const pool = new FixedThreadPool(numThreads, './tests/workers/testWorker.js', {
+  errorHandler: e => console.error(e),
+  onlineHandler: () => console.log('worker is online')
+})
 const emptyPool = new FixedThreadPool(1, './tests/workers/emptyWorker.js')
 const echoPool = new FixedThreadPool(1, './tests/workers/echoWorker.js')
-const errorPool = new FixedThreadPool(1, './tests/workers/errorWorker.js', { errorHandler: (e) => console.error(e), onlineHandler: () => console.log('worker is online') })
+const errorPool = new FixedThreadPool(1, './tests/workers/errorWorker.js', {
+  errorHandler: e => console.error(e),
+  onlineHandler: () => console.log('worker is online')
+})
 const asyncPool = new FixedThreadPool(1, './tests/workers/asyncWorker.js')
 
 describe('Fixed thread pool test suite ', () => {