Fork自 DCloud / uni-app
体验新版 GitCode,发现更多精彩内容 >>
describe('env', () => {
it('CLI', () => {
process.env.LANG = 'es' const { getLocale } = require('../lib/locale') expect(getLocale()).toBe('es')
})
it('HBuilderX', () => { process.env.UNI_HBUILDERX_LANGID = 'fr'
const { getLocale } = require('../lib/locale') expect(getLocale()).toBe('fr')
}) })