From 7d2ea44c83add4b35c6700742232f2e577b0af84 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 30 Oct 2017 11:40:31 +0800 Subject: [PATCH] test: normalize test title --- test/debug.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/debug.test.js b/test/debug.test.js index d19ebe955d..189721bc16 100644 --- a/test/debug.test.js +++ b/test/debug.test.js @@ -20,17 +20,17 @@ test.before('Init Nuxt.js', async t => { await nuxt.listen(port, 'localhost') }) -test('Check /test/_open (open-in-editor)', async t => { +test('/test/_open (open-in-editor)', async t => { const { body } = await rp(url('/test/_open?file=pages/index.vue'), { resolveWithFullResponse: true }) t.is(body, 'opened in editor!') }) -test('Check /test/_open with error (open-in-editor)', async t => { +test('/test/_open should return error (open-in-editor)', async t => { const { body } = await rp(url('/test/_open?file='), { resolveWithFullResponse: true }) t.is(body, 'File is not specified') }) -test('Check /test/error (Youch)', async t => { +test('/test/error should return error stack trace (Youch)', async t => { const { response, error } = await t.throws(nuxt.renderAndGetWindow(url('/test/error'))) t.is(response.statusCode, 500) t.is(response.statusMessage, 'NuxtServerError')