Skip to content

Commit

Permalink
fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kurasawa authored and t-kurasawa committed Jan 6, 2024
1 parent c4dafe1 commit ac96d8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ sw.*

# Vim swap files
*.swp

# Playwright
/test-results/
/playwright-report/
/blob-report/
Expand Down
2 changes: 1 addition & 1 deletion test-unit/lib/displayHelper.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getNowYMD } from '~/lib/displayHelper';

describe('getNowYMD', () => {
test('returns the formatted date in Japanese by default', () => {
test('returns the formatted date in Japanese by customization', () => {
const mockDate = new Date('2022-01-05T12:34:56');
const result = getNowYMD(mockDate, 'ja');
expect(result).toBe('2022年01月05日12時34分');
Expand Down

0 comments on commit ac96d8c

Please sign in to comment.