From 5de97062b0f29f7bbf4278cc276ef1bde2844e1c Mon Sep 17 00:00:00 2001 From: Aiden Gardner <19619206+aiden2480@users.noreply.github.com> Date: Mon, 14 Oct 2024 22:23:15 +1100 Subject: [PATCH] Run linter --- .../chrome-web-store-last-updated.service.js | 4 ++-- .../chrome-web-store-last-updated.tester.js | 15 ++++++++++----- .../chrome-web-store-size.service.js | 2 +- .../chrome-web-store-size.tester.js | 2 +- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/services/chrome-web-store/chrome-web-store-last-updated.service.js b/services/chrome-web-store/chrome-web-store-last-updated.service.js index 101fe7f32cace..4f871c741714e 100644 --- a/services/chrome-web-store/chrome-web-store-last-updated.service.js +++ b/services/chrome-web-store/chrome-web-store-last-updated.service.js @@ -20,7 +20,7 @@ export default class ChromeWebStoreLastUpdated extends BaseChromeWebStoreService } static defaultBadgeData = { - label: 'extension last updated' + label: 'extension last updated', } async handle({ storeId }) { @@ -31,7 +31,7 @@ export default class ChromeWebStoreLastUpdated extends BaseChromeWebStoreService throw new NotFound({ prettyMessage: 'not found' }) } - const lastUpdatedDate = Date.parse(lastUpdated); + const lastUpdatedDate = Date.parse(lastUpdated) return { message: formatDate(lastUpdatedDate), diff --git a/services/chrome-web-store/chrome-web-store-last-updated.tester.js b/services/chrome-web-store/chrome-web-store-last-updated.tester.js index b4edd8166449c..2cdc6628c1be9 100644 --- a/services/chrome-web-store/chrome-web-store-last-updated.tester.js +++ b/services/chrome-web-store/chrome-web-store-last-updated.tester.js @@ -3,11 +3,16 @@ import { createServiceTester } from '../tester.js' export const t = await createServiceTester() -t.create('Last updated').get('/nccfelhkfpbnefflolffkclhenplhiab.json').expectBadge({ - label: 'extension last updated', - message: isFormattedDate, -}) +t.create('Last updated') + .get('/nccfelhkfpbnefflolffkclhenplhiab.json') + .expectBadge({ + label: 'extension last updated', + message: isFormattedDate, + }) t.create('Last updated (not found)') .get('/invalid-name-of-addon.json') - .expectBadge({ label: 'extension last updated', message: 'not found' }) + .expectBadge({ + label: 'extension last updated', + message: 'not found', + }) diff --git a/services/chrome-web-store/chrome-web-store-size.service.js b/services/chrome-web-store/chrome-web-store-size.service.js index 1ce05b3128052..12b11829e454a 100644 --- a/services/chrome-web-store/chrome-web-store-size.service.js +++ b/services/chrome-web-store/chrome-web-store-size.service.js @@ -19,7 +19,7 @@ export default class ChromeWebStoreSize extends BaseChromeWebStoreService { static defaultBadgeData = { label: 'extension size', - color: 'blue' + color: 'blue', } async handle({ storeId }) { diff --git a/services/chrome-web-store/chrome-web-store-size.tester.js b/services/chrome-web-store/chrome-web-store-size.tester.js index 94c2b89558049..5eb2f9ae6d4cd 100644 --- a/services/chrome-web-store/chrome-web-store-size.tester.js +++ b/services/chrome-web-store/chrome-web-store-size.tester.js @@ -1,7 +1,7 @@ import { createServiceTester } from '../tester.js' export const t = await createServiceTester() -const isFileSize = /^\d+(\.\d+)?(MiB|KiB)$/; +const isFileSize = /^\d+(\.\d+)?(MiB|KiB)$/ t.create('Size').get('/nccfelhkfpbnefflolffkclhenplhiab.json').expectBadge({ label: 'extension size',