Skip to content

Commit d547d83

Browse files
committed
test: fix tips
1 parent eac2c3e commit d547d83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/controllers/util.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe('test/controllers/util.test.js', () => {
9696
const res = await request('/api/upload', 'post')
9797
.attach('file', Buffer.from('upload'), 'upload.js')
9898

99-
expect(res.body.message).toBe('上传失败,仅支持 jpg/jpeg/png/gif/json/yml 文件类型')
99+
expect(res.body.message).toBe(`上传失败,仅支持 ${uploadConf.types.join('/').replace(/\./g, '')} 文件类型`)
100100
})
101101

102102
test('大小限制', async () => {

0 commit comments

Comments
 (0)