Skip to content

Commit

Permalink
Correct new linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Aug 16, 2018
1 parent 55931d2 commit c4d9e6a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion test/async_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ describe("async rendering", function(){
});

helpers.createServer(8070, function(req, res){
var data;
switch(req.url) {
case "/bar":
var data = [ { "a": "a" }, { "b": "b" } ];
data = [ { "a": "a" }, { "b": "b" } ];
break;
default:
throw new Error("No route for " + req.url);
Expand Down
3 changes: 2 additions & 1 deletion test/auth-cookie-failed-domain_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ describe("auth cookies - failed domain", function() {
});

helpers.createServer(8070, function(req, res){
var data;
authHeader = req.headers.authorization;
switch(req.url) {
case "/api/list":
var data = [1,2,3,4,5];
data = [1,2,3,4,5];
break;
default:
throw new Error("No route for " + req.url);
Expand Down
3 changes: 2 additions & 1 deletion test/auth-cookie_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ describe("auth cookies", function() {
});

helpers.createServer(8070, function(req, res){
var data;
authHeader = req.headers.authorization;
switch(req.url) {
case "/api/list":
var data = [1,2,3,4,5];
data = [1,2,3,4,5];
break;
default:
throw new Error("No route for " + req.url);
Expand Down
3 changes: 2 additions & 1 deletion test/incremental_prog_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ describe("Incremental rendering", function(){

before(function(done){
helpers.createServer(8070, function(req, res){
var data;
switch(req.url) {
case "/bar":
var data = [ { "a": "a" }, { "b": "b" } ];
data = [ { "a": "a" }, { "b": "b" } ];
break;
default:
throw new Error("No route for " + req.url);
Expand Down
3 changes: 2 additions & 1 deletion test/incremental_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ describe("Incremental rendering", function(){

before(function(done){
helpers.createServer(8070, function(req, res){
var data;
switch(req.url) {
case "/bar":
var data = [ { "a": "a" }, { "b": "b" } ];
data = [ { "a": "a" }, { "b": "b" } ];
break;
default:
throw new Error("No route for " + req.url);
Expand Down
3 changes: 2 additions & 1 deletion test/leak_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ describe("Memory leaks", function(){

before(function(done){
helpers.createServer(8070, function(req, res){
var data;
switch(req.url) {
case "/bar":
var data = [ { "a": "a" }, { "b": "b" } ];
data = [ { "a": "a" }, { "b": "b" } ];
break;
default:
throw new Error("No route for " + req.url);
Expand Down
3 changes: 2 additions & 1 deletion test/xhr_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ describe("xhr async rendering", function() {
});

helpers.createServer(8070, function(req, res){
var data;
switch(req.url) {
case "/api/list":
var data = [1,2,3,4,5];
data = [1,2,3,4,5];
break;
default:
throw new Error("No route for " + req.url);
Expand Down

0 comments on commit c4d9e6a

Please sign in to comment.