12 lines
339 B
TypeScript
12 lines
339 B
TypeScript
|
import Page from "#app/models/page.js"
|
||
|
import factory from "@adonisjs/lucid/factories"
|
||
|
import { sanitizePageTitle } from "@repo/wikipedia-game-solver/wikipedia-utils"
|
||
|
|
||
|
export const PageFactory = factory
|
||
|
.define(Page, async ({ faker }) => {
|
||
|
return {
|
||
|
title: sanitizePageTitle(faker.commerce.productName()),
|
||
|
}
|
||
|
})
|
||
|
.build()
|