Skip to content

Commit

Permalink
jasmine-node doesn't have toBeTrue/toBeFalse? Sigh.
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Mar 8, 2013
1 parent 910b15c commit 636f5e3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/q-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ describe("delay", function () {
var promise = Q.resolve(5).delay(50);

setTimeout(function () {
expect(promise.isPending()).toBeTrue();
expect(promise.isPending()).toBe(true);
}, 40);

return promise;
Expand All @@ -1579,7 +1579,7 @@ describe("delay", function () {
var promise = Q.reject(5).delay(50);

setTimeout(function () {
expect(promise.isPending()).toBeTrue();
expect(promise.isPending()).toBe(true);
}, 40);

return promise.then(undefined, function () { });
Expand All @@ -1589,7 +1589,7 @@ describe("delay", function () {
var promise = Q.delay(50);

setTimeout(function () {
expect(promise.isPending()).toBeTrue();
expect(promise.isPending()).toBe(true);
}, 40);

return promise;
Expand All @@ -1599,7 +1599,7 @@ describe("delay", function () {
var promise = Q.delay("what", 50);

setTimeout(function () {
expect(promise.isPending()).toBeTrue();
expect(promise.isPending()).toBe(true);
}, 40);

return promise.then(function (value) {
Expand All @@ -1612,8 +1612,8 @@ describe("delay", function () {
var promise2 = Q.delay(promise1, 50);

setTimeout(function () {
expect(promise1.isPending()).toBeFalse();
expect(promise2.isPending()).toBeTrue();
expect(promise1.isPending()).toBe(false);
expect(promise2.isPending()).toBe(true);
}, 40);

return promise2.then(function (value) {
Expand All @@ -1626,8 +1626,8 @@ describe("delay", function () {
var promise2 = Q.delay(promise1, 50);

setTimeout(function () {
expect(promise1.isPending()).toBeTrue();
expect(promise2.isPending()).toBeTrue();
expect(promise1.isPending()).toBe(true);
expect(promise2.isPending()).toBe(true);
}, 60);

return promise2.then(function (value) {
Expand Down

0 comments on commit 636f5e3

Please sign in to comment.