element-plus/packages/utils/__tests__/i18n.test.ts

13 lines
379 B
TypeScript
Raw Normal View History

2022-04-12 22:50:34 +08:00
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)
})
})