Commit graph

14 commits

Author SHA1 Message Date
Martin Iwanowski
3721f6be0b test: remove redudant test case () 2017-04-12 23:41:38 -06:00
Avindra Goolcharan
2a16426afe nit: fix grammar in generator deprecation warning ()
This fixes the tense of `will been` to `will be`
2016-10-17 17:45:06 +02:00
jongleberry
be87ef8a24 lint: upgrade packages, fix generator star spacing 2016-03-28 14:21:05 -07:00
Martin Iwanowski
0ac4ff00c6 Convert generator-mw with deprecation warning 2016-03-22 07:35:05 +01:00
Yanick Rochon
d134fff9e8 Fix issue when app.use() is called with empty value 2015-11-25 12:10:55 +08:00
broucz
4b1a1da652 test: switch all functions to arrow functions
closes 

Update test: application -> use() should throw if not a function

Fix lint

Use arrow function

Refactor test using arrow function

Remove non mandatory brackets

fix for merge

Fix: missing refactor after merge

Use arrow function for old generator
2015-11-02 11:22:05 -08:00
blaz
3560651bbc Add usage of koa-convert for legacy middleware
closes 
closes 
2015-10-30 20:20:00 -07:00
Slobodan Stojanovic
b08facb7bd Fix indentation and add .eslint rules
closes 
2015-10-29 09:55:34 -07:00
Felix Becker
ebb4850709 Remove co dependency
closes 
closes 

Change tests to use plain functions and promises

Add test

return promise in middleware

Change benchmarks to use plain functions and promises

typeerror
2015-10-27 16:24:25 -07:00
broucz
e859c602d1 Update test: application -> use() should throw if not a function
closes 

Fix lint

Use arrow function

Remove not necessary import
2015-10-25 12:53:05 -07:00
jongleberry
2e8cdab8bc support async functions
closes 
closes 
2015-10-22 16:34:59 -07:00
Michaël Zasso
b5c09a1719 test: fix style issues 2015-10-13 09:23:57 +02:00
Tejas Manohar
93ade5e2dd refactor Application into a class 2015-10-13 01:19:42 -05:00
Tejas Manohar
e8f79d43f9 modularize tests for application
closes 

add index test for Application

add app.toJSON test

add test for app.inspect()

add tests for app.use()

add tests for app.onerror()

add tests for app.respond()

add tests for app.context()

add tests for app.request()

add tests for app.response

refactor for non-existence of test/app...js

no need for *.js

use helpers/ dir for non-tests
2015-10-12 00:08:06 -07:00