visionmedia / page.js

Micro client-side router inspired by the Express router
http://visionmedia.github.com/page.js
7.67k stars 687 forks source link

Add tests for validating asynchronous callbacks. #490

Closed sgomes closed 5 years ago

sgomes commented 5 years ago

E.g.:

page('/async', function(ctx, next) {
  setTimeout(function() {
    next();
  }, 10);
}
coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 89.326% when pulling a2139ca8f6a3d3d0c06b3b633465942a06ca70c1 on sgomes:add-async-tests into 20aa29b790a506967d734366ed0323d70f3fca52 on visionmedia:master.

matthewp commented 5 years ago

Perfect, thank you so much!