import { renderHook } from '@testing-library/react' import useScale, { ScaleConfig } from '../index' describe('UseScale', () => { it('should work correctly', () => { const { result } = renderHook(() => useScale()) const { SCALES, getScaleProps } = result.current as any expect(typeof SCALES).toEqual('object') expect(typeof getScaleProps).toEqual('function') expect(getScaleProps('font')).toBeUndefined() expect(SCALES.font(1)).not.toBeUndefined() }) })