Skip to content

Commit ba0058a

Browse files
fix fmt
1 parent ec3af40 commit ba0058a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

web/locales/en/plugin__netobserv-plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@
516516
"Last 2 days": "Last 2 days",
517517
"Last 1 week": "Last 1 week",
518518
"Last 2 weeks": "Last 2 weeks",
519+
"Yesterday": "Yesterday",
519520
"Value is empty": "Value is empty",
520521
"Value is malformed": "Value is malformed",
521522
"Not a valid Kubernetes name": "Not a valid Kubernetes name",
@@ -584,6 +585,5 @@
584585
"The top DNS response code extracted from DNS response headers compared to total over the selected interval": "The top DNS response code extracted from DNS response headers compared to total over the selected interval",
585586
"rates": "rates",
586587
"with total": "with total",
587-
"Invalid custom panel id": "Invalid custom panel id",
588-
"Yesterday": "Yesterday"
588+
"Invalid custom panel id": "Invalid custom panel id"
589589
}

web/src/utils/__tests__/datetime.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('datetime', () => {
1919
describe('formatActiveSince', () => {
2020
const FIXED_NOW = new Date('2025-11-27T15:00:00');
2121
const tMock: TFunction = ((key: string) => key) as unknown as TFunction;
22-
22+
2323
beforeAll(() => {
2424
jest.useFakeTimers();
2525
jest.setSystemTime(FIXED_NOW);
@@ -46,17 +46,17 @@ describe('formatActiveSince', () => {
4646

4747
const expectedTime = twentyFourHourTime(date, false);
4848

49-
const result = formatActiveSince(tMock,ts);
49+
const result = formatActiveSince(tMock, ts);
5050

5151
expect(result).toBe(`Yesterday, ${expectedTime}`);
5252
});
5353

5454
it('should format dates within the last 7 days as "Weekday, HH:MM"', () => {
55-
const ts = '2025-11-25T09:30:00';
55+
const ts = '2025-11-25T09:30:00';
5656
const date = new Date(ts);
5757

5858
const weekdayFormatter = new Intl.DateTimeFormat(getLanguage(), {
59-
weekday: 'short',
59+
weekday: 'short'
6060
});
6161
const weekday = weekdayFormatter.format(date);
6262
const time = twentyFourHourTime(date, false);
@@ -67,7 +67,7 @@ describe('formatActiveSince', () => {
6767
});
6868

6969
it('should format older dates with "YYYY-MM-DD HH:MM"', () => {
70-
const ts = '2025-11-07T14:00:00';
70+
const ts = '2025-11-07T14:00:00';
7171
const date = new Date(ts);
7272

7373
const expectedDate = toISODateString(date);

0 commit comments

Comments
 (0)