@@ -29,7 +29,7 @@ describe('Upload', () => {
29
29
const data = jest . fn ( )
30
30
const props = {
31
31
propsData : {
32
- action : 'http://jsonplaceholder.typicode. com/posts/ ' ,
32
+ action : 'http://upload. com' ,
33
33
beforeUpload : ( ) => new Promise ( resolve =>
34
34
setTimeout ( ( ) => resolve ( 'success' ) , 100 )
35
35
) ,
@@ -48,7 +48,6 @@ describe('Upload', () => {
48
48
} ,
49
49
sync : false ,
50
50
}
51
- Upload . props
52
51
const wrapper = mount ( Upload , props )
53
52
setTimeout ( ( ) => {
54
53
const mockFile = new File ( [ 'foo' ] , 'foo.png' , {
@@ -66,7 +65,7 @@ describe('Upload', () => {
66
65
const data = jest . fn ( )
67
66
const props = {
68
67
propsData : {
69
- action : 'http://jsonplaceholder.typicode. com/posts/ ' ,
68
+ action : 'http://upload. com' ,
70
69
beforeUpload : ( ) => false ,
71
70
data,
72
71
} ,
@@ -100,7 +99,7 @@ describe('Upload', () => {
100
99
let lastPercent = - 1
101
100
const props = {
102
101
propsData : {
103
- action : 'http://jsonplaceholder.typicode. com/posts/ ' ,
102
+ action : 'http://upload. com' ,
104
103
} ,
105
104
listeners : {
106
105
change : ( { file } ) => {
@@ -139,7 +138,7 @@ describe('Upload', () => {
139
138
const data = jest . fn ( )
140
139
const props = {
141
140
propsData : {
142
- action : 'http://jsonplaceholder.typicode. com/posts/ ' ,
141
+ action : 'http://upload. com' ,
143
142
beforeUpload ( ) { } ,
144
143
data,
145
144
} ,
0 commit comments