test: verify worker properties value
[poolifier.git] / tests / utils.test.mjs
index b6551dbdeeac64f6ab60c74608692bbd42be90f6..bf6d3f08a6480be8e1470f242321300e184e66a8 100644 (file)
@@ -1,11 +1,14 @@
-import os from 'node:os'
 import { randomInt } from 'node:crypto'
+import os from 'node:os'
+
 import { expect } from 'expect'
+
+import { KillBehaviors } from '../lib/index.cjs'
 import {
-  DEFAULT_TASK_NAME,
-  EMPTY_FUNCTION,
   availableParallelism,
   average,
+  DEFAULT_TASK_NAME,
+  EMPTY_FUNCTION,
   exponentialDelay,
   isAsyncFunction,
   isKillBehavior,
@@ -18,7 +21,6 @@ import {
   secureRandom,
   sleep
 } from '../lib/utils.cjs'
-import { KillBehaviors } from '../lib/index.cjs'
 
 describe('Utils test suite', () => {
   it('Verify DEFAULT_TASK_NAME value', () => {
@@ -217,7 +219,7 @@ describe('Utils test suite', () => {
     expect(max(1, 1)).toBe(1)
   })
 
-  // it('Verify once()', () => {
+  // it('Verify once() behavior', () => {
   //   let called = 0
   //   const fn = () => ++called
   //   const onceFn = once(fn, this)