import faker from 'faker'; import {StoreModel} from '../../../src/model/Store'; // eslint-disable-next-line @typescript-eslint/require-await const data = async (props = {}) => { const defaultProps = { name: faker.address.country(), code: faker.address.countryCode(), }; return Object.assign({}, defaultProps, props); }; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types const StoreModelFactory = async (props = {}) => StoreModel.create(await data(props)); export default StoreModelFactory;