Merge branch 'FuzzySockets-to-throw-error-unused-param'
This commit is contained in:
@@ -3230,7 +3230,7 @@ getJasmineRequireObj().toThrow = function(j$) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getJasmineRequireObj().toThrowError = function(j$) {
|
getJasmineRequireObj().toThrowError = function(j$) {
|
||||||
function toThrowError (util) {
|
function toThrowError () {
|
||||||
return {
|
return {
|
||||||
compare: function(actual) {
|
compare: function(actual) {
|
||||||
var threw = false,
|
var threw = false,
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ describe("toThrowError", function() {
|
|||||||
var util = {
|
var util = {
|
||||||
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
|
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
|
||||||
},
|
},
|
||||||
matcher = j$.matchers.toThrowError(util),
|
matcher = j$.matchers.toThrowError(),
|
||||||
fn = function() {
|
fn = function() {
|
||||||
throw new Error();
|
throw new Error();
|
||||||
},
|
},
|
||||||
@@ -162,7 +162,7 @@ describe("toThrowError", function() {
|
|||||||
var util = {
|
var util = {
|
||||||
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
|
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
|
||||||
},
|
},
|
||||||
matcher = j$.matchers.toThrowError(util),
|
matcher = j$.matchers.toThrowError(),
|
||||||
CustomError = function CustomError(arg) { arg.x },
|
CustomError = function CustomError(arg) { arg.x },
|
||||||
fn = function() {
|
fn = function() {
|
||||||
throw new CustomError({ x: 1 });
|
throw new CustomError({ x: 1 });
|
||||||
@@ -181,7 +181,7 @@ describe("toThrowError", function() {
|
|||||||
var util = {
|
var util = {
|
||||||
equals: jasmine.createSpy('delegated-equal').and.returnValue(false)
|
equals: jasmine.createSpy('delegated-equal').and.returnValue(false)
|
||||||
},
|
},
|
||||||
matcher = j$.matchers.toThrowError(util),
|
matcher = j$.matchers.toThrowError(),
|
||||||
fn = function() {
|
fn = function() {
|
||||||
throw new Error();
|
throw new Error();
|
||||||
},
|
},
|
||||||
@@ -197,7 +197,7 @@ describe("toThrowError", function() {
|
|||||||
var util = {
|
var util = {
|
||||||
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
|
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
|
||||||
},
|
},
|
||||||
matcher = j$.matchers.toThrowError(util),
|
matcher = j$.matchers.toThrowError(),
|
||||||
fn = function() {
|
fn = function() {
|
||||||
throw new TypeError("foo");
|
throw new TypeError("foo");
|
||||||
},
|
},
|
||||||
@@ -213,7 +213,7 @@ describe("toThrowError", function() {
|
|||||||
var util = {
|
var util = {
|
||||||
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
|
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
|
||||||
},
|
},
|
||||||
matcher = j$.matchers.toThrowError(util),
|
matcher = j$.matchers.toThrowError(),
|
||||||
CustomError = function CustomError(arg) { this.message = arg.message },
|
CustomError = function CustomError(arg) { this.message = arg.message },
|
||||||
fn = function() {
|
fn = function() {
|
||||||
throw new CustomError({message: "foo"});
|
throw new CustomError({message: "foo"});
|
||||||
@@ -232,7 +232,7 @@ describe("toThrowError", function() {
|
|||||||
var util = {
|
var util = {
|
||||||
equals: jasmine.createSpy('delegated-equal').and.returnValue(false)
|
equals: jasmine.createSpy('delegated-equal').and.returnValue(false)
|
||||||
},
|
},
|
||||||
matcher = j$.matchers.toThrowError(util),
|
matcher = j$.matchers.toThrowError(),
|
||||||
fn = function() {
|
fn = function() {
|
||||||
throw new TypeError("foo");
|
throw new TypeError("foo");
|
||||||
},
|
},
|
||||||
@@ -248,7 +248,7 @@ describe("toThrowError", function() {
|
|||||||
var util = {
|
var util = {
|
||||||
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
|
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
|
||||||
},
|
},
|
||||||
matcher = j$.matchers.toThrowError(util),
|
matcher = j$.matchers.toThrowError(),
|
||||||
fn = function() {
|
fn = function() {
|
||||||
throw new TypeError("foo");
|
throw new TypeError("foo");
|
||||||
},
|
},
|
||||||
@@ -264,7 +264,7 @@ describe("toThrowError", function() {
|
|||||||
var util = {
|
var util = {
|
||||||
equals: jasmine.createSpy('delegated-equal').and.returnValue(false)
|
equals: jasmine.createSpy('delegated-equal').and.returnValue(false)
|
||||||
},
|
},
|
||||||
matcher = j$.matchers.toThrowError(util),
|
matcher = j$.matchers.toThrowError(),
|
||||||
fn = function() {
|
fn = function() {
|
||||||
throw new TypeError("foo");
|
throw new TypeError("foo");
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
getJasmineRequireObj().toThrowError = function(j$) {
|
getJasmineRequireObj().toThrowError = function(j$) {
|
||||||
function toThrowError (util) {
|
function toThrowError () {
|
||||||
return {
|
return {
|
||||||
compare: function(actual) {
|
compare: function(actual) {
|
||||||
var threw = false,
|
var threw = false,
|
||||||
|
|||||||
Reference in New Issue
Block a user