UNPKG

@softbind/react-slotty

Version:
17 lines (12 loc) 472 B
import { createSlots } from '../src' test('[createSlots] allow to pass any arguments', () => { const Slots = createSlots('title', 'nav') expect(Slots).toHaveProperty('Title') expect(Slots).toHaveProperty('Nav') }) test('[createSlots] allow to pass array', () => { const Slots = createSlots(['title', 'nav', 'navTitle']) expect(Slots).toHaveProperty('Title') expect(Slots).toHaveProperty('Nav') expect(Slots).toHaveProperty('NavTitle') })