Update test

This commit is contained in:
Pig Fang 2018-07-27 18:54:39 +08:00
parent 862468f51f
commit 3946314ae0
2 changed files with 4 additions and 4 deletions

View File

@ -6,10 +6,6 @@ import swal from 'sweetalert2';
jest.mock('axios');
jest.mock('sweetalert2');
window.blessing = {
base_url: ''
};
function factory(opt = {}) {
return {
tid: 1,

View File

@ -1,6 +1,10 @@
import 'jest-extended';
import Vue from 'vue';
window.blessing = {
base_url: ''
};
Vue.prototype.$t = key => key;
Vue.directive('t', (el, { value }) => {