Add linter and minor bug fixes (#107)

This commit is contained in:
Simon Lecoq
2021-02-05 23:45:48 +01:00
committed by GitHub
parent 61e2f6e1a1
commit 882a93dea5
74 changed files with 1544 additions and 712 deletions

View File

@@ -1,5 +1,5 @@
/** Mocked data */
export default function ({faker, url, options, login = faker.internet.userName()}) {
/**Mocked data */
export default function({faker, url, options, login = faker.internet.userName()}) {
//Twitter api
if (/^https:..api.twitter.com.*$/.test(url)) {
//Get user profile
@@ -16,7 +16,7 @@
id:faker.random.number(1000000).toString(),
username,
},
}
},
})
}
//Get recent tweets
@@ -40,7 +40,7 @@
id:faker.random.number(100000000000000).toString(),
created_at:`${faker.date.recent()}`,
text:faker.lorem.paragraph(),
}
},
],
includes:{
users:[
@@ -49,7 +49,7 @@
name:"lowlighter",
username:"lowlighter",
},
]
],
},
meta:{
newest_id:faker.random.number(100000000000000).toString(),
@@ -57,8 +57,8 @@
result_count:2,
next_token:"MOCKED_CURSOR",
},
}
},
})
}
}
}
}