Adopt strict mode throughout the codebase

This commit is contained in:
Steve Gravrock
2025-10-05 06:53:54 -07:00
parent 73a30ffc3e
commit 68a7cbb991
116 changed files with 442 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Any = function(j$) {
'use strict';
function Any(expectedObject) {
if (typeof expectedObject === 'undefined') {
throw new TypeError(

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Anything = function(j$) {
'use strict';
function Anything() {}
Anything.prototype.asymmetricMatch = function(other) {

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().ArrayContaining = function(j$) {
'use strict';
function ArrayContaining(sample) {
this.sample = sample;
}

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().ArrayWithExactContents = function(j$) {
'use strict';
function ArrayWithExactContents(sample) {
this.sample = sample;
}

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Empty = function(j$) {
'use strict';
function Empty() {}
Empty.prototype.asymmetricMatch = function(other) {

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Falsy = function(j$) {
'use strict';
function Falsy() {}
Falsy.prototype.asymmetricMatch = function(other) {

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Is = function(j$) {
'use strict';
class Is {
constructor(expected) {
this.expected_ = expected;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().MapContaining = function(j$) {
'use strict';
function MapContaining(sample) {
if (!j$.private.isMap(sample)) {
throw new Error(

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().NotEmpty = function(j$) {
'use strict';
function NotEmpty() {}
NotEmpty.prototype.asymmetricMatch = function(other) {

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().ObjectContaining = function(j$) {
'use strict';
function ObjectContaining(sample) {
this.sample = sample;
}

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().SetContaining = function(j$) {
'use strict';
function SetContaining(sample) {
if (!j$.private.isSet(sample)) {
throw new Error(

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().StringContaining = function(j$) {
'use strict';
function StringContaining(expected) {
if (!j$.private.isString(expected)) {
throw new Error('Expected is not a String');

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().StringMatching = function(j$) {
'use strict';
function StringMatching(expected) {
if (!j$.private.isString(expected) && !j$.private.isA('RegExp', expected)) {
throw new Error('Expected is not a String or a RegExp');

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Truthy = function(j$) {
'use strict';
function Truthy() {}
Truthy.prototype.asymmetricMatch = function(other) {