UNPKG

phaser-jsx

Version:
13 lines (10 loc) 276 B
import { createRef } from './createRef'; it('creates ref', () => { expect(createRef()).toEqual({ current: null }); }); it('sets ref', () => { type Type = 'value'; const ref = createRef<Type>(); ref.current = 'value'; expect(ref).toEqual({ current: 'value' }); });