Skip to content

Commit

Permalink
chore: happy new year!
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Jan 1, 2024
1 parent 004c226 commit 75000bc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 2023 Hey
Copyright (C) 2024 Hey

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
Expand Down
2 changes: 1 addition & 1 deletion packages/data/pride-hashtags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const prideHashtags = [
'lgbtcommunity',
'gay',
'gaypride',
'pride2023',
'pride2024',
'lesbian',
'lesbianlove',
'lesbianpride',
Expand Down
2 changes: 1 addition & 1 deletion packages/data/tests/regex/hashtag.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('hashtag regex', () => {
});

test('should fail for hashtags filled with a digit', () => {
expect(validate('#2023')).toBe(false);
expect(validate('#2024')).toBe(false);
});

test('should fail for hashtags without any alphabet characters', () => {
Expand Down
8 changes: 4 additions & 4 deletions packages/lib/datetime/formatDate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ import formatDate from './formatDate';

describe('formatDate', () => {
test('should correctly format a given date in default format', () => {
const exampleDate = new Date('2023-12-01');
const exampleDate = new Date('2024-12-01');
const result = formatDate(exampleDate);
const expectedResult = 'December 1, 2023';
const expectedResult = 'December 1, 2024';
expect(result).toBe(expectedResult);
});

test('should correctly format a given date in a custom format', () => {
const exampleDate = new Date('2023-12-01');
const exampleDate = new Date('2024-12-01');
const result = formatDate(exampleDate, 'YYYY-MM-DD');
const expectedResult = '2023-12-01';
const expectedResult = '2024-12-01';
expect(result).toBe(expectedResult);
});

Expand Down

0 comments on commit 75000bc

Please sign in to comment.