createImage helper to testData.js

This commit is contained in:
Vesa Luusua 2017-04-12 00:53:36 +03:00
parent 25441af8da
commit 8aae28c6c8

View file

@ -12,6 +12,28 @@ export const createUser = id => ({
},
});
// Create a user that conforms to the util/propTypes user schema
export const createImage = id => ({
id: new UUID(id),
type: 'image',
attributes: {
sizes: [
{
name: 'square',
height: 408,
width: 408,
url: 'https://placehold.it/408x408',
},
{
name: 'square2x',
height: 816,
width: 816,
url: 'https://placehold.it/816x816',
},
],
},
});
// Create a user that conforms to the util/propTypes listing schema
export const createListing = id => ({
id: new UUID(id),