duojs/test — pull request #54 by lancejpollard (2014-10-28 00:05:57+00:00)
Title: load middleware

The `middleware` variable is getting initialized _after_ the `duotest()` function is getting evaluated because of this:

- `lazy()` is getting called above `program.middleware`
- `lazy()` calls `duotest()`, which calls `var mw = middleware || function(){}`, but `middleware` hasn't been defined yet.

This PR makes it so `middleware()` resolves correctly.