Run yarn run lint --fix

This commit is contained in:
Robert Schäfer 2019-01-19 01:04:42 +01:00
parent 8591816dfa
commit d0fa8b7e21
3 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ services:
- GRAPHQL_PORT=4000
- GRAPHQL_URI=http://localhost:4000
- CLIENT_URI=http://localhost:3000
- JWT_SECRET="b/&&7b78BF&fv/Vd"
- JWT_SECRET=b/&&7b78BF&fv/Vd
- MOCK=false
- MAPBOX_TOKEN=pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.KZ8KK9l70omjXbEkkbHGsQ

View File

@ -19,7 +19,7 @@ const checkUrl = (thing) => {
}
export const fixImageURLs = (result, recursive) => {
if(checkUrl(result)) {
if (checkUrl(result)) {
result = fixUrl(result)
} else if (result && Array.isArray(result)) {
result.forEach((res, index) => {

View File

@ -24,7 +24,7 @@ describe('fixImageURLs', () => {
describe('some string', () => {
it('returns untouched', () => {})
const string = "Yeah I'm a String"
expect(fixImageURLs(string)).toEqual(string)
const string = 'Yeah I\'m a String'
expect(fixImageURLs(string)).toEqual(string)
})
})