export const clone = (obj: { [k: string]: any }) => JSON.parse(JSON.stringify(obj))

describe('clone', () => {
  it('should clone an object', () => {
    const result = clone({ hello: 1 })
    expect(result).toMatchObject({ hello: 1 })
  })
})
