Skip to content

Commit

Permalink
test: fix test cases which derived from Intl
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Dec 13, 2024
1 parent a4a1a7d commit ccbeaa4
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions packages/neuron-ui/src/tests/calendar/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,20 @@ describe('Get Local Month Short Names', () => {
})

it('Arabic', () => {
const names = ['ينا.', 'فبر.', 'مارس.', 'أبر.', 'مايو.', 'يون.', 'يول.', 'أغس.', 'سبت.', 'أكت.', 'نوف.', 'ديس.']
const names = [
'يناير',
'فبراير',
'مارس',
'أبريل',
'مايو',
'يونيو',
'يوليو',
'أغسطس',
'سبتمبر',
'أكتوبر',
'نوفمبر',
'ديسمبر',
]
expect(getLocalMonthShortNames('ar')).toEqual(names)
})

Expand Down Expand Up @@ -221,7 +234,7 @@ describe('Get Local Week Names', () => {
})

it('Arabic', () => {
const names = ['ح', 'إ', 'ث', 'أ', 'خ', 'ج', 'س']
const names = ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س']
expect(getLocalWeekNames('ar')).toEqual(names)
})

Expand Down

2 comments on commit ccbeaa4

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 12309188645

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 12309211233

Please sign in to comment.