@@ -29,7 +29,7 @@ describe('Upload', () => {
2929 const data = jest . fn ( )
3030 const props = {
3131 propsData : {
32- action : 'http://jsonplaceholder.typicode. com/posts/ ' ,
32+ action : 'http://upload. com' ,
3333 beforeUpload : ( ) => new Promise ( resolve =>
3434 setTimeout ( ( ) => resolve ( 'success' ) , 100 )
3535 ) ,
@@ -48,7 +48,6 @@ describe('Upload', () => {
4848 } ,
4949 sync : false ,
5050 }
51- Upload . props
5251 const wrapper = mount ( Upload , props )
5352 setTimeout ( ( ) => {
5453 const mockFile = new File ( [ 'foo' ] , 'foo.png' , {
@@ -66,7 +65,7 @@ describe('Upload', () => {
6665 const data = jest . fn ( )
6766 const props = {
6867 propsData : {
69- action : 'http://jsonplaceholder.typicode. com/posts/ ' ,
68+ action : 'http://upload. com' ,
7069 beforeUpload : ( ) => false ,
7170 data,
7271 } ,
@@ -100,7 +99,7 @@ describe('Upload', () => {
10099 let lastPercent = - 1
101100 const props = {
102101 propsData : {
103- action : 'http://jsonplaceholder.typicode. com/posts/ ' ,
102+ action : 'http://upload. com' ,
104103 } ,
105104 listeners : {
106105 change : ( { file } ) => {
@@ -139,7 +138,7 @@ describe('Upload', () => {
139138 const data = jest . fn ( )
140139 const props = {
141140 propsData : {
142- action : 'http://jsonplaceholder.typicode. com/posts/ ' ,
141+ action : 'http://upload. com' ,
143142 beforeUpload ( ) { } ,
144143 data,
145144 } ,
0 commit comments