UNPKG

@prismicio/mock

Version:

Generate mock Prismic documents, fields, Slices, and models for development and testing environments

14 lines (13 loc) 333 B
import { createFaker } from "./createFaker.js"; const buildEmbedField = (config) => { const faker = config.faker || createFaker(config.seed); return { embed_url: config.url ?? faker.url(), html: `<div>embed html</div>`, ...config.data }; }; export { buildEmbedField }; //# sourceMappingURL=buildEmbedField.js.map