Skip to content

Commit e7ab83c

Browse files
committed
test: update upload action
1 parent c2a2ded commit e7ab83c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

components/upload/__tests__/upload.test.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)