Skip to content

Commit

Permalink
Delint tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Dec 12, 2013
1 parent db454c1 commit f1ae04e
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions test/controller.filters.before.data.test.js
Expand Up @@ -39,7 +39,7 @@ describe('Controller#before', function() {
this.band = data.band;
this.album = data.album;
this.render();
}
};

var req, res;

Expand Down Expand Up @@ -89,7 +89,7 @@ describe('Controller#before', function() {
this.album = data.album;
this.store = data.store; //undefined
this.render();
}
};
controller.before('show', function(next) {
var data = {
band: 'Counting Crows'
Expand Down Expand Up @@ -163,7 +163,7 @@ describe('Controller#before', function() {
this.store = data.store;
this.address = 'Berkeley, CA';
this.render();
}
};
proto.before(['theDoors', 'strangeDays'], function(next) {
var data = {
band: 'The Doors'
Expand All @@ -176,13 +176,13 @@ describe('Controller#before', function() {
this.band = data.band;
this.song = 'Break On Through (To the Other Side)';
this.render();
}
};
proto.strangeDays = function(data) {
this.order.push('a');
this.band = data.band;
this.song = 'Love Me Two Times';
this.render();
}
};

describe('invoking first action', function() {
var controller = Object.create(proto);
Expand Down Expand Up @@ -305,13 +305,13 @@ describe('Controller#before', function() {
this.band = data.band;
this.song = 'Break On Through (To the Other Side)';
this.render();
}
};
proto.strangeDays = function(data) {
this.order.push('a');
this.band = data.band;
this.song = 'Love Me Two Times';
this.render();
}
};
proto.before(['theDoors', 'strangeDays'], function(next) {
var data = {
band: 'The Doors'
Expand All @@ -324,7 +324,7 @@ describe('Controller#before', function() {
this.store = data.store;
this.address = 'Berkeley, CA';
this.render();
}
};
proto.before('index', function(next) {
var data = {
store: 'Amoeba Music'
Expand Down Expand Up @@ -461,7 +461,7 @@ describe('Controller#before', function() {
this.store = data.store;
this.band = data.band;
this.render();
}
};
proto.before('*', function(data, next) {
data = data || {};
data.band = 'The Doors';
Expand All @@ -473,13 +473,13 @@ describe('Controller#before', function() {
this.song = 'Break On Through (To the Other Side)';
this.band = data.band;
this.render();
}
};
proto.strangeDays = function(data) {
this.order.push('a');
this.song = 'Love Me Two Times';
this.band = data.band;
this.render();
}
};

describe('invoking first action', function() {
var controller = Object.create(proto);
Expand Down Expand Up @@ -604,13 +604,13 @@ describe('Controller#before', function() {
this.song = 'Break On Through (To the Other Side)';
this.band = data.band;
this.render();
}
};
proto.strangeDays = function(data) {
this.order.push('a');
this.song = 'Love Me Two Times';
this.band = data.band;
this.render();
}
};
proto.before('*', function(data, next) {
data = data || {};
this.order.push(1);
Expand All @@ -623,7 +623,7 @@ describe('Controller#before', function() {
this.store = data.store;
this.band = data.band;
this.render();
}
};
proto.before('index', function(data, next) {
data = data || {};
this.order.push('x');
Expand Down Expand Up @@ -754,7 +754,7 @@ describe('Controller#before', function() {
this.order.push(1);
var data = {
band: 'Counting Crows'
}
};
next(new Error('something went wrong'), data);
});
controller.before('show', function(data, next) {
Expand All @@ -768,7 +768,7 @@ describe('Controller#before', function() {
this.album = data.album;
this.band = data.band;
this.render();
}
};

var req, res, error;

Expand Down Expand Up @@ -830,7 +830,7 @@ describe('Controller#before', function() {
this.album = data.album;
this.band = data.band;
this.render();
}
};

var req, res, error;

Expand Down

0 comments on commit f1ae04e

Please sign in to comment.