mirror of
https://github.com/koel/koel
synced 2025-02-26 20:27:11 +00:00
26 lines
602 B
JavaScript
26 lines
602 B
JavaScript
import factory from 'factoria'
|
|
|
|
export default faker => {
|
|
const artist = factory('artist')
|
|
|
|
return {
|
|
artist,
|
|
id: faker.random.number(),
|
|
artist_id: artist.id,
|
|
name: faker.lorem.sentence(),
|
|
cover: faker.image.imageUrl(),
|
|
info: {
|
|
image: faker.image.imageUrl(),
|
|
wiki: {
|
|
summary: faker.lorem.sentence(),
|
|
full: faker.lorem.paragraph()
|
|
},
|
|
tracks: [
|
|
{ title: faker.lorem.sentence(), fmtLength: '3:42' },
|
|
{ title: faker.lorem.sentence(), fmtLength: '2:37' },
|
|
],
|
|
url: faker.internet.url()
|
|
},
|
|
songs: []
|
|
}
|
|
}
|