diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index 88a8b3e6..ca6d8f14 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -2193,6 +2193,8 @@ getJasmineRequireObj().JsApiReporter = function(j$) { }; getJasmineRequireObj().AllOf = function(j$) { + 'use strict'; + function AllOf() { const expectedValues = Array.from(arguments); if (expectedValues.length === 0) { diff --git a/src/core/asymmetric_equality/AllOf.js b/src/core/asymmetric_equality/AllOf.js index db67a947..7a6bb3e7 100644 --- a/src/core/asymmetric_equality/AllOf.js +++ b/src/core/asymmetric_equality/AllOf.js @@ -1,4 +1,6 @@ getJasmineRequireObj().AllOf = function(j$) { + 'use strict'; + function AllOf() { const expectedValues = Array.from(arguments); if (expectedValues.length === 0) {