test: skip reqest in dev test for now

This commit is contained in:
Clark Du 2019-03-08 16:43:45 +00:00
parent d07aefa5db
commit 3e678793b9
1 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ describe('basic dev', () => {
// } // }
// }) // })
test('/__open-in-editor (open-in-editor)', async () => { test.skip('/__open-in-editor (open-in-editor)', async () => {
const { body } = await rp( const { body } = await rp(
url('/__open-in-editor?file=pages/index.vue'), url('/__open-in-editor?file=pages/index.vue'),
{ resolveWithFullResponse: true } { resolveWithFullResponse: true }
@ -130,7 +130,7 @@ describe('basic dev', () => {
expect(body).toBe('') expect(body).toBe('')
}) })
test('/__open-in-editor should return error (open-in-editor)', async () => { test.skip('/__open-in-editor should return error (open-in-editor)', async () => {
await expect(rp(url('/__open-in-editor?file='))).rejects.toMatchObject({ await expect(rp(url('/__open-in-editor?file='))).rejects.toMatchObject({
statusCode: 500, statusCode: 500,
error: 'launch-editor-middleware: required query param "file" is missing.' error: 'launch-editor-middleware: required query param "file" is missing.'
@ -143,7 +143,7 @@ describe('basic dev', () => {
}) })
}) })
test('/error should return json format error (Youch)', async () => { test.skip('/error should return json format error (Youch)', async () => {
const opts = { const opts = {
headers: { headers: {
accept: 'application/json' accept: 'application/json'