Reformat code with Prettier's new rules.
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -15,6 +15,6 @@ export const intersperse = (arr, sep) => {
|
||||
function (xs, x, i) {
|
||||
return xs.concat([sep, x])
|
||||
},
|
||||
[arr[0]]
|
||||
[arr[0]],
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user