react-vaccine
Version:
Config-free React and Redux testkit
14 lines (11 loc) • 422 B
JavaScript
import { vaccinator } from './lib/vaccinator.js';
import { withVaccine } from './lib/with-vaccine.js';
import * as vaccinations from './vaccinations.js';
import MockState from './lib/mock-state.js';
const getVaccination = key => {
return vaccinations.Components[key];
};
const vaccinate = (key, Component) => {
return withVaccine(Component, getVaccination(key), key);
};
export { vaccinator, vaccinate, MockState };