test: prefer enUS (#8144)

This commit is contained in:
neverland
2021-02-12 20:06:11 +08:00
committed by GitHub
parent eaf01090cc
commit cb2c2b9b68
10 changed files with 67 additions and 66 deletions

View File

@@ -1,11 +1,8 @@
import { h } from 'vue';
import Locale from '../src/locale';
import enUS from '../src/locale/lang/en-US';
import { mount, later } from '.';
import { DemoLocaleMixin } from '../docs/site/demo-locale';
Locale.use('en-US', enUS);
const EmptyComponent = {
render() {
return h('div', [this.$slots.default()]);

View File

@@ -1,4 +1,8 @@
import './plugin';
import Locale from '../src/locale';
import enUS from '../src/locale/lang/en-US';
Locale.use('en-US', enUS);
// promisify setTimeout
export function later(delay = 0): Promise<void> {