Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 28, 2020
1 parent 0d2a398 commit ab84b29
Show file tree
Hide file tree
Showing 3 changed files with 198 additions and 194 deletions.
2 changes: 1 addition & 1 deletion src/default-extend.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ extend type ___RootTypeName___ {

type Pet {
name: String @fake(type: firstName)
image: String @fake(type:imageUrl, options: { imageKeywords: ["cats"] })
image: String @fake(type: imageUrl, options: { imageKeywords: ["cats"] })
}
4 changes: 2 additions & 2 deletions src/fake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ const fakeFunctions = {
let url = 'https://source.unsplash.com/random/';

if (size != null) {
url += `${size.width}x${size.height}/`
url += `${size.width}x${size.height}/`;
}

if (keywords != null && keywords.length > 0) {
url += '?' + keywords.join(',');
}

if (randomize === true) {
url += '#' + faker.random.number()
url += '#' + faker.random.number();
}

return url;
Expand Down
Loading

0 comments on commit ab84b29

Please sign in to comment.