mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-13 17:05:47 +08:00
1d13ebb05d
* feat: drop jest * test: remove ssr * test: rename * chore: update tsconfig
13 lines
379 B
TypeScript
13 lines
379 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { isKorean } from '..'
|
|
|
|
describe('i18n', () => {
|
|
it('isKorean should work', () => {
|
|
expect(isKorean('한국어')).toBe(true)
|
|
expect(isKorean('한국어 korean')).toBe(true)
|
|
expect(isKorean('korean')).toBe(false)
|
|
expect(isKorean('中文')).toBe(false)
|
|
expect(isKorean('にほんご')).toBe(false)
|
|
})
|
|
})
|