compound-ex4
Version:
Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)
20 lines (14 loc) • 445 B
JavaScript
var BaseController = require('../').BaseController;
describe('route', function() {
it('should return route for specific action', function (done) {
var Ctl = BaseController.constructClass();
Ctl.actions.hello = function (c) {
c.world();
};
Ctl.prototype.world = function () {
done();
};
var route = Ctl('hello');
route({}, {}, function () { });
});
});