Adopt strict mode throughout the codebase
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
getJasmineRequireObj().Any = function(j$) {
|
||||
'use strict';
|
||||
|
||||
function Any(expectedObject) {
|
||||
if (typeof expectedObject === 'undefined') {
|
||||
throw new TypeError(
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
getJasmineRequireObj().Anything = function(j$) {
|
||||
'use strict';
|
||||
|
||||
function Anything() {}
|
||||
|
||||
Anything.prototype.asymmetricMatch = function(other) {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
getJasmineRequireObj().ArrayContaining = function(j$) {
|
||||
'use strict';
|
||||
|
||||
function ArrayContaining(sample) {
|
||||
this.sample = sample;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
getJasmineRequireObj().ArrayWithExactContents = function(j$) {
|
||||
'use strict';
|
||||
|
||||
function ArrayWithExactContents(sample) {
|
||||
this.sample = sample;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
getJasmineRequireObj().Empty = function(j$) {
|
||||
'use strict';
|
||||
|
||||
function Empty() {}
|
||||
|
||||
Empty.prototype.asymmetricMatch = function(other) {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
getJasmineRequireObj().Falsy = function(j$) {
|
||||
'use strict';
|
||||
|
||||
function Falsy() {}
|
||||
|
||||
Falsy.prototype.asymmetricMatch = function(other) {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
getJasmineRequireObj().Is = function(j$) {
|
||||
'use strict';
|
||||
|
||||
class Is {
|
||||
constructor(expected) {
|
||||
this.expected_ = expected;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
getJasmineRequireObj().MapContaining = function(j$) {
|
||||
'use strict';
|
||||
|
||||
function MapContaining(sample) {
|
||||
if (!j$.private.isMap(sample)) {
|
||||
throw new Error(
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
getJasmineRequireObj().NotEmpty = function(j$) {
|
||||
'use strict';
|
||||
|
||||
function NotEmpty() {}
|
||||
|
||||
NotEmpty.prototype.asymmetricMatch = function(other) {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
getJasmineRequireObj().ObjectContaining = function(j$) {
|
||||
'use strict';
|
||||
|
||||
function ObjectContaining(sample) {
|
||||
this.sample = sample;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
getJasmineRequireObj().SetContaining = function(j$) {
|
||||
'use strict';
|
||||
|
||||
function SetContaining(sample) {
|
||||
if (!j$.private.isSet(sample)) {
|
||||
throw new Error(
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
getJasmineRequireObj().Truthy = function(j$) {
|
||||
'use strict';
|
||||
|
||||
function Truthy() {}
|
||||
|
||||
Truthy.prototype.asymmetricMatch = function(other) {
|
||||
|
||||
Reference in New Issue
Block a user