Skip to content

Commit

Permalink
Removed alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
wbyoung committed May 29, 2015
1 parent 2c43f55 commit 6f21442
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ var modelBinder = function(db, req) {
};

/**
* A wrapper for Express routes that binds queries & model classes to the
* transaction.
* A wrapper for decorated Express routes that binds queries & model classes to
* the transaction.
*
* @param {Database} db The Azul.js database on which bindings should be created.
* @param {Function} fn The Express route to wrap.
Expand Down Expand Up @@ -290,7 +290,6 @@ var route = function(db, fn, options) {
module.exports = function(db) {
var fn = _.partial(route, db);
fn.route = fn;
fn.di = fn;
fn.transaction = transactionMiddleware(db);
fn.rollback = rollbackMiddleware(db);
fn.catch = fn.rollback;
Expand Down
4 changes: 0 additions & 4 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ describe('azul-express', function() {
expect(ae).to.equal(ae.route);
});

it('defines di as an alias for route', function() {
expect(ae.di).to.equal(ae.route);
});

it('defines error as an alias for rollback', function() {
expect(ae.error).to.equal(ae.rollback);
});
Expand Down

0 comments on commit 6f21442

Please sign in to comment.