chore: code formatting

This commit is contained in:
github-actions[bot]
2022-07-21 04:37:55 +00:00
parent 48f4ef79ed
commit aa83b84522
5 changed files with 36 additions and 34 deletions

View File

@@ -15,9 +15,9 @@ export default function({faker, query, login = faker.internet.userName()}) {
edges: new Array(faker.datatype.number({min: 50, max: 100})).fill(null).map(() => ({
starredAt: `${faker.date.recent(30)}`,
cursor: "MOCKED_CURSOR",
node:{
node: {
location: faker.address.city(),
}
},
})),
},
},

View File

@@ -1,11 +1,11 @@
//Imports
import { faker } from "@faker-js/faker"
import { Client as Gmap } from "@googlemaps/google-maps-services-js"
import axios from "axios"
import fs from "fs/promises"
import paths from "path"
import rss from "rss-parser"
import urls from "url"
import {Client as Gmap} from "@googlemaps/google-maps-services-js"
//Mocked state
let mocked = false
@@ -160,39 +160,39 @@ export default async function({graphql, rest}) {
const city = faker.address.city()
const country = faker.address.country()
return {
data:{
results:[
data: {
results: [
{
address_components: [
{
long_name: city,
short_name: city,
types: [ "political" ]
types: ["political"],
},
{
long_name: country,
short_name: faker.address.countryCode(),
types: [ "country", "political" ]
}
types: ["country", "political"],
},
],
formatted_address: `${city}, ${country}`,
geometry: {
bounds: {
northeast: { lat, lng },
southwest: { lat, lng }
northeast: {lat, lng},
southwest: {lat, lng},
},
location: { lat, lng },
location: {lat, lng},
location_type: "APPROXIMATE",
viewport: {
northeast: { lat, lng },
southwest: { lat, lng }
}
northeast: {lat, lng},
southwest: {lat, lng},
},
},
place_id: 'ChIJu9FC7RXupzsR26dsAapFLgg',
types: [ "locality", "political" ]
}
]
}
place_id: "ChIJu9FC7RXupzsR26dsAapFLgg",
types: ["locality", "political"],
},
],
},
}
}
}