Reformat code with Prettier's new rules.

This commit is contained in:
Caio Cotts
2023-12-18 14:56:03 -05:00
parent 735d670a5b
commit 86757663d6
82 changed files with 236 additions and 222 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ describe('formatDuration', () => {
it('formats days, hours and minutes', () => {
expect(formatDuration(hour + minute + 1)).toEqual('01:01:01')
expect(formatDuration(3 * day + 3 * hour + 7 * minute)).toEqual(
'3:03:07:00'
'3:03:07:00',
)
expect(formatDuration(day)).toEqual('1:00:00:00')
expect(formatDuration(day + minute + 0.6)).toEqual('1:00:01:01')
+1 -1
View File
@@ -15,6 +15,6 @@ export const intersperse = (arr, sep) => {
function (xs, x, i) {
return xs.concat([sep, x])
},
[arr[0]]
[arr[0]],
)
}
+1 -1
View File
@@ -10,7 +10,7 @@ export const baseUrl = (path) => {
export const shareUrl = (id) => {
const url = new URL(
baseUrl(config.publicBaseUrl + '/' + id),
window.location.href
window.location.href,
)
return url.href
}