mirror of
https://github.com/dzeiocom/libs.git
synced 2025-07-25 14:29:51 +00:00
fix: allow to use another type than an object when possible
Some checks are pending
CodeQL / Analyze (javascript) (push) Has started running
Some checks are pending
CodeQL / Analyze (javascript) (push) Has started running
Signed-off-by: Avior <git@avior.me>
This commit is contained in:
@ -515,5 +515,9 @@ describe('object get', () => {
|
||||
.toEqual({a: 'pouet'})
|
||||
expect(objectGet({a: 'pouet'}, ''))
|
||||
.toEqual({a: 'pouet'})
|
||||
expect(objectGet('pouet', ''))
|
||||
.toEqual('pouet')
|
||||
expect(objectGet('pouet', []))
|
||||
.toEqual('pouet')
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user