00:35:52  * Hestilquit (Remote host closed the connection)
00:36:17  * tschuyjoined
00:36:18  * muriculajoined
00:36:40  <muricula>Hi, how do we do unit testing with koa?
00:39:04  * tschuypart
00:52:09  * Hestiljoined
00:54:42  * joshonthewebjoined
00:58:06  * TheThingjoined
01:08:59  * kazuponjoined
01:11:52  * Hestilquit (Remote host closed the connection)
01:14:10  * TheAceOfHeartsquit (Quit: Leaving.)
01:43:04  * TheAceOfHeartsjoined
01:43:42  * joshonthewebquit (Quit: Textual IRC Client: http://www.textualapp.com/)
01:55:38  * joshonthewebjoined
01:58:16  * mhernandez1quit (Remote host closed the connection)
02:19:31  <TheAceOfHearts>uhhhh
02:19:35  <TheAceOfHearts>it depends x)
02:19:38  <TheAceOfHearts>on what you want to test :D
02:20:04  <TheAceOfHearts>for example, middleware is just generator functions :D
02:20:46  <TheAceOfHearts>from inside co you could do something like: yield co(myMiddleware.bind(context))
02:20:53  <TheAceOfHearts>and check that it does whatever it is you want it to do
02:21:11  <TheAceOfHearts>I do request tests for my API
02:21:19  <TheAceOfHearts>which isn't koa-specific at all
02:22:51  * Hestiljoined
02:25:25  <TheAceOfHearts>muricula: ^
02:27:37  * Hestilquit (Ping timeout: 265 seconds)
02:37:41  * jongleberryquit (Remote host closed the connection)
03:07:41  * kazuponquit (Remote host closed the connection)
03:08:52  <muricula>TheAceOfHearts: hmmm thanks. I want to do unit testing on a crud app. I want to make sure that when I call my update function the database is updated.
03:09:20  <TheAceOfHearts>I don't consider those unit tests
03:09:39  <TheAceOfHearts>those are request tests, and they fall along the lines of integration tests IMO :P
03:09:48  <muricula>Well each endpoint is a unit and unit testing is a highly ambiguous term
03:10:02  <muricula>https://github.com/tschuy/timesync/blob/master/src/app.js
03:10:07  <muricula>Our very shitty app
03:10:18  <TheAceOfHearts>unit testing usually means testing units of *code* :P
03:10:34  <muricula>Also we need to pull all those endpoint intp a routes.js file
03:10:58  <TheAceOfHearts>https://github.com/cesarandreu/awesome-request-tests here's an example
03:11:14  <TheAceOfHearts>I use babeljs though
03:11:18  <TheAceOfHearts>with koa and mocha
03:11:27  * HairAndBeardGuyjoined
03:11:42  <muricula>Yeah each endpoint is a unit, right? As opposed to testing "I call curl and get the right json back" I want to test "I call my new_user function and a new user appears in the db"
03:12:18  <TheAceOfHearts>you're testing integration between your code and database
03:12:45  <TheAceOfHearts>otherwise you could call all tests unit tests, because everything can be consider a unit of something
03:12:58  <muricula>Okay, thanks for your input, I'll be sure to look at the link you sent me
03:13:10  * TheThingquit (Remote host closed the connection)
03:13:48  <TheAceOfHearts>https://github.com/cesarandreu/awesome-request-tests/blob/master/test/request.test.js
03:13:57  * TheAceOfHeartspart
03:13:58  * TheAceOfHeartsjoined
04:04:09  * kazuponjoined
05:02:06  * TheAceOfHeartsquit (Quit: Leaving.)
05:04:16  * jongleberryjoined
05:13:33  * kazuponquit (Remote host closed the connection)
05:33:25  * TheAceOfHeartsjoined
05:38:47  * kazuponjoined
07:13:05  * TheAceOfHeartsquit (Quit: Leaving.)
07:13:44  * TheThingjoined
07:18:10  * TheThingquit (Ping timeout: 250 seconds)
08:16:21  * kazuponquit (Remote host closed the connection)
08:39:22  * kazuponjoined
09:21:08  * Hestiljoined
09:34:54  * timaschewjoined
10:06:30  * timaschewquit (Quit: My Mac has gone to sleep. ZZZzzz…)
10:21:57  * shesekjoined
10:30:06  * HairAndBeardGuyquit (Ping timeout: 252 seconds)
10:44:38  * kazuponquit (Remote host closed the connection)
11:02:59  * mhernandez1joined
11:25:14  * evanjsjoined
11:29:22  * evanjs_joined
11:30:15  * evanjsquit (Ping timeout: 244 seconds)
11:32:57  * evanjs_quit (Remote host closed the connection)
11:46:18  * mhernandez1quit (Remote host closed the connection)
12:02:03  * TheThingjoined
12:03:53  * joshonthewebquit (Quit: Computer has gone to sleep.)
12:57:29  * mhernandez1joined
13:43:32  * evanjsjoined
14:00:25  * jongleberryquit
14:08:47  * jongleberryjoined
16:06:26  * mhernandez1quit (Remote host closed the connection)
16:08:13  * mhernandez1joined
16:31:23  * jongleberryquit (Remote host closed the connection)
16:42:45  * TheAceOfHeartsjoined
16:54:46  * jongleberryjoined
16:55:02  * Hestilquit (Remote host closed the connection)
17:20:03  * evanjsquit (Remote host closed the connection)
17:43:39  * Foxandxssjoined
17:46:53  * TheThingquit (Remote host closed the connection)
18:04:24  * MacWinnerjoined
18:06:00  * Hestiljoined
18:10:29  * Hestilquit (Ping timeout: 248 seconds)
18:49:12  * evanjsjoined
19:01:07  * TheAceOfHeartsquit (Quit: Leaving.)
19:14:48  * TheAceOfHeartsjoined
20:37:07  * Hestiljoined
20:46:21  * TheThingjoined
20:52:39  * mhernand_joined
20:52:54  * mhernandez1quit (Read error: Connection reset by peer)
21:10:06  * evanjsquit (Remote host closed the connection)
21:36:31  * evanjsjoined
21:36:31  * evanjsquit (Remote host closed the connection)
21:51:36  * evanjsjoined
21:51:36  * evanjsquit (Remote host closed the connection)
21:54:03  * jongleberryquit
22:06:28  * evanjsjoined
22:06:31  * evanjsquit (Remote host closed the connection)
22:21:29  * evanjsjoined
22:21:31  * evanjsquit (Remote host closed the connection)
22:51:28  * evanjsjoined
22:51:31  * evanjsquit (Remote host closed the connection)
23:06:27  * ilkkaquit (Remote host closed the connection)
23:06:31  * evanjsjoined
23:06:31  * evanjsquit (Remote host closed the connection)
23:07:44  * ilkkajoined
23:21:28  * evanjsjoined
23:21:31  * evanjsquit (Remote host closed the connection)
23:31:24  * TheAceOfHeartsquit (Quit: Leaving.)
23:36:29  * evanjsjoined
23:36:31  * evanjsquit (Remote host closed the connection)
23:51:30  * evanjsjoined
23:51:31  * evanjsquit (Remote host closed the connection)
23:55:44  * Foxandxssquit (Quit: Textual IRC Client: www.textualapp.com)
23:56:28  * TheAceOfHeartsjoined