fd932b41ab5ae31e1011e9efa5e6d8f593f97a7c
1 import { describe
, it
} from
'node:test'
3 import { expect
} from
'expect'
5 import { setDefaultErrorParams
} from
'../../src/utils/ErrorUtils.js'
7 await describe('ErrorUtils test suite', async () => {
8 await it('Verify setDefaultErrorParams()', () => {
9 expect(setDefaultErrorParams({})).toStrictEqual({ throwError
: true, consoleOut
: false })
10 expect(setDefaultErrorParams({ throwError
: false })).toStrictEqual({
14 expect(setDefaultErrorParams({ throwError
: false, consoleOut
: true })).toStrictEqual({
18 expect(setDefaultErrorParams({ throwError
: true, consoleOut
: true })).toStrictEqual({
22 expect(setDefaultErrorParams({}, { throwError
: false, consoleOut
: false })).toStrictEqual({