Skip to content

Commit 909c5b6

Browse files
committed
fix: delete some unnecessary comments
1 parent 49d4727 commit 909c5b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: __test__/locale.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Language } from '../utils/getLanguage'
55
import { includeAllKeys, excludeKeys } from './utils'
66

77
const locales = readdirSync(resolve(__dirname, '../locales')).filter((file) => {
8-
return file.includes('.json') // exclude unnecessary files
8+
return file.includes('.json')
99
})
1010

1111
describe('should match name regex', () => {
@@ -17,6 +17,7 @@ describe('should match name regex', () => {
1717
* @example reusable locale: zh-Hant
1818
*/
1919
const regex = /^[a-zA-Z]{2}(-[a-zA-Z]{2})*.json$|^[a-zA-Z]{2}(-[a-zA-z]{4})*.json$/
20+
2021
locales.forEach((locale) => {
2122
it(`for ${locale}`, () => {
2223
expect(locale).toMatch(regex)

0 commit comments

Comments
 (0)