From f1aaa5227a4aa180ba329aa22901e69a413539ef Mon Sep 17 00:00:00 2001 From: David Glasser Date: Mon, 1 Jul 2013 21:29:35 -0700 Subject: [PATCH] Add a bunch of 'vars' found by looking at built packages. --- packages/email/email_tests.js | 2 +- packages/http/httpcall_tests.js | 2 +- packages/meteor/dynamics_test.js | 2 +- packages/oauth/oauth_server.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/email/email_tests.js b/packages/email/email_tests.js index b6fcf3026f..f8cdcd4610 100644 --- a/packages/email/email_tests.js +++ b/packages/email/email_tests.js @@ -1,4 +1,4 @@ -streamBuffers = Npm.require('stream-buffers'); +var streamBuffers = Npm.require('stream-buffers'); Tinytest.add("email - dev mode smoke test", function (test) { // This only tests dev mode, so don't run the test if this is deployed. diff --git a/packages/http/httpcall_tests.js b/packages/http/httpcall_tests.js index f96904d88f..9b1e0c0f41 100644 --- a/packages/http/httpcall_tests.js +++ b/packages/http/httpcall_tests.js @@ -102,7 +102,7 @@ testAsyncMulti("httpcall - errors", [ } // Server serves 500 - error500Callback = function(error, result) { + var error500Callback = function(error, result) { test.isTrue(error); test.isTrue(error.message.indexOf("500") !== -1); // message has statusCode test.isTrue(error.message.indexOf( diff --git a/packages/meteor/dynamics_test.js b/packages/meteor/dynamics_test.js index d88e76bca2..3fd795a30d 100644 --- a/packages/meteor/dynamics_test.js +++ b/packages/meteor/dynamics_test.js @@ -1,4 +1,4 @@ -CurrentFoo = new Meteor.EnvironmentVariable; +var CurrentFoo = new Meteor.EnvironmentVariable; Tinytest.add("environment - dynamic variables", function (test) { test.equal(CurrentFoo.get(), undefined); diff --git a/packages/oauth/oauth_server.js b/packages/oauth/oauth_server.js index acdc795a34..8f39ae32dc 100644 --- a/packages/oauth/oauth_server.js +++ b/packages/oauth/oauth_server.js @@ -54,7 +54,7 @@ Oauth.hasCredential = function(credentialToken) { } Oauth.retrieveCredential = function(credentialToken) { - result = Oauth._loginResultForCredentialToken[credentialToken]; + var result = Oauth._loginResultForCredentialToken[credentialToken]; delete Oauth._loginResultForCredentialToken[credentialToken]; return result; }