Remove unused parameter from toThrowError

This commit is contained in:
Richard Harrington
2015-10-26 11:43:31 -04:00
parent 48f42eaa7d
commit c2ae3b6b12
3 changed files with 10 additions and 10 deletions

View File

@@ -3219,7 +3219,7 @@ getJasmineRequireObj().toThrow = function(j$) {
};
getJasmineRequireObj().toThrowError = function(j$) {
function toThrowError (util) {
function toThrowError () {
return {
compare: function(actual) {
var threw = false,

View File

@@ -146,7 +146,7 @@ describe("toThrowError", function() {
var util = {
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
},
matcher = j$.matchers.toThrowError(util),
matcher = j$.matchers.toThrowError(),
fn = function() {
throw new Error();
},
@@ -162,7 +162,7 @@ describe("toThrowError", function() {
var util = {
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
},
matcher = j$.matchers.toThrowError(util),
matcher = j$.matchers.toThrowError(),
CustomError = function CustomError(arg) { arg.x },
fn = function() {
throw new CustomError({ x: 1 });
@@ -181,7 +181,7 @@ describe("toThrowError", function() {
var util = {
equals: jasmine.createSpy('delegated-equal').and.returnValue(false)
},
matcher = j$.matchers.toThrowError(util),
matcher = j$.matchers.toThrowError(),
fn = function() {
throw new Error();
},
@@ -197,7 +197,7 @@ describe("toThrowError", function() {
var util = {
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
},
matcher = j$.matchers.toThrowError(util),
matcher = j$.matchers.toThrowError(),
fn = function() {
throw new TypeError("foo");
},
@@ -213,7 +213,7 @@ describe("toThrowError", function() {
var util = {
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 },
fn = function() {
throw new CustomError({message: "foo"});
@@ -232,7 +232,7 @@ describe("toThrowError", function() {
var util = {
equals: jasmine.createSpy('delegated-equal').and.returnValue(false)
},
matcher = j$.matchers.toThrowError(util),
matcher = j$.matchers.toThrowError(),
fn = function() {
throw new TypeError("foo");
},
@@ -248,7 +248,7 @@ describe("toThrowError", function() {
var util = {
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
},
matcher = j$.matchers.toThrowError(util),
matcher = j$.matchers.toThrowError(),
fn = function() {
throw new TypeError("foo");
},
@@ -264,7 +264,7 @@ describe("toThrowError", function() {
var util = {
equals: jasmine.createSpy('delegated-equal').and.returnValue(false)
},
matcher = j$.matchers.toThrowError(util),
matcher = j$.matchers.toThrowError(),
fn = function() {
throw new TypeError("foo");
},

View File

@@ -1,5 +1,5 @@
getJasmineRequireObj().toThrowError = function(j$) {
function toThrowError (util) {
function toThrowError () {
return {
compare: function(actual) {
var threw = false,