este-library-oldschool
Version:
Library for github.com/steida/este.git
30 lines • 709 B
JavaScript
// Generated by github.com/steida/coffee2closure 900.1.18
suite('este.labs.app.Route', function() {
var Route, app, arrangeRoute, path, route;
Route = este.labs.app.Route;
route = null;
path = null;
app = null;
setup(function() {
path = '/:a/foo';
app = {
load: function() {}
};
return arrangeRoute();
});
arrangeRoute = function() {
return route = new Route(path, app);
};
return suite('redirect', function() {
return test('should call app.load', function(done) {
app.load = function(url) {
assert.equal(url, '/1/foo');
return done();
};
arrangeRoute();
return route.redirect({
a: 1
});
});
});
});