vant/test/index.ts
2021-02-12 20:06:11 +08:00

17 lines
369 B
TypeScript

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> {
return new Promise((resolve) => {
setTimeout(resolve, delay);
});
}
export * from './dom';
export * from './event';
export { mount } from '@vue/test-utils';