Skip to content

Commit

Permalink
removed extra err parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
drewlesueur committed Sep 29, 2011
1 parent ec1866c commit b539b30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/jasmine-core/jasmine.js
Expand Up @@ -1053,7 +1053,7 @@ jasmine.BlockAsync.prototype.execute = function(onComplete) {
}, this.timeout);

var that = this
this.func.apply(this.spec, [null, function(err) {
this.func.apply(this.spec, [function(err) {
that.env.clearTimeout(failTimer);
if (err) {
that.spec.fail(err);
Expand Down
14 changes: 7 additions & 7 deletions spec/core/SpecRunningSpec.js
Expand Up @@ -264,14 +264,14 @@ describe("jasmine spec running", function () {
foo = 0;
env.describe('test async spec', function() {
a_spec = env.it('spec w/ queued statments', function () {
this.runsAsync(function (err, callback) {
this.runsAsync(function (callback) {
fakeTimer.setTimeout(function() {
foo++;
callback()
}, 500);
});
var that = this
this.runsAsync(function(err, callback) {
this.runsAsync(function(callback) {
fakeTimer.setTimeout(function(){
that.expect(foo).toEqual(1);
callback()
Expand Down Expand Up @@ -299,14 +299,14 @@ describe("jasmine spec running", function () {
var yet_another_spec;
env.describe('test async spec', function() {
yet_another_spec = env.it('spec w/ async fail on a callback', function () {
this.runsAsync(function (err, callback) {
this.runsAsync(function (callback) {
fakeTimer.setTimeout(function() {
baz++;
callback("not null") //("first arg not null")
}, 250);
});
var that = this
this.runsAsync(function(err, callback) {
this.runsAsync(function(callback) {
fakeTimer.setTimeout(function() {
that.expect(baz).toEqual(1);
callback()
Expand All @@ -331,15 +331,15 @@ describe("jasmine spec running", function () {
var even_more_spec;
env.describe('test async spec', function() {
even_more_spec = env.it('spec w/ async fail on last callback', function () {
this.runsAsync(function (err, callback) {
this.runsAsync(function (callback) {
fakeTimer.setTimeout(function() {
that.expect(bazzy).toEqual(0)
bazzy++;
callback(null) //("first arg not null")
}, 250);
});
var that = this
this.runsAsync(function(err, callback) {
this.runsAsync(function(callback) {
fakeTimer.setTimeout(function() {
that.expect(bazzy).toEqual(1);
callback("error")
Expand All @@ -364,7 +364,7 @@ describe("jasmine spec running", function () {
env.describe('test async spec', function() {
mas_spec = env.it('spec w/ async fail by timeout', function () {
var that = this
this.runsAsync(function (err, callback) {
this.runsAsync(function (callback) {
fakeTimer.setTimeout(function() {
that.expect(foozy).toEqual(0)
foozy++;
Expand Down

0 comments on commit b539b30

Please sign in to comment.