From f599fa503299fabbb5319024941d8bfd2e5669f3 Mon Sep 17 00:00:00 2001 From: Jacob Beard Date: Wed, 5 Apr 2017 16:29:51 -0400 Subject: [PATCH] Use strict mode --- lib/scion.js | 2 ++ test/harness/common/setup-nodeunit-tests.js | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/scion.js b/lib/scion.js index 2b070ba..560a753 100644 --- a/lib/scion.js +++ b/lib/scion.js @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +"use strict"; + var extend = Object.assign || function (to, from){ Object.keys(from).forEach(function(k){ diff --git a/test/harness/common/setup-nodeunit-tests.js b/test/harness/common/setup-nodeunit-tests.js index b9499b3..7a34938 100644 --- a/test/harness/common/setup-nodeunit-tests.js +++ b/test/harness/common/setup-nodeunit-tests.js @@ -7,8 +7,8 @@ var testSerializations = [true, false]; var testGenAsync = [true, false]; var testOptions = []; -//testSerializations.forEach(function(testSerialization){ - //testGenAsync.forEach(function(testGenAsync){ +testSerializations.forEach(function(testSerialization){ + testGenAsync.forEach(function(testGenAsync){ tests.forEach(function(test){ testOptions.push({ testSerialization : false, @@ -17,8 +17,8 @@ var testOptions = []; name : test.name + (false ? '(serialization)' : '') + (false ? '(async)' : '') }); }); - //}); -//}) + }); +}) module.exports = function(scion){