Skip to content

Commit

Permalink
chore(test): update dependency references in tests
Browse files Browse the repository at this point in the history
relates to #998
  • Loading branch information
kwonoj committed Jan 8, 2016
1 parent 9bd7649 commit 05ac8dd
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions spec/Observable-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ describe('Observable', function () {

it('should reject promise when in error', function (done) {
Observable.throw('bad').forEach(function (x) {
throw 'should not be called';
}).then(function () {
done.fail('should not be called');
}, null, Promise).then(function () {
done.fail('should not complete');
}, function (err) {
expect(err).toBe('bad');
Expand Down Expand Up @@ -173,4 +173,4 @@ describe('Observable.create', function () {
result.subscribe(function () { });
expect(called).toBe(true);
});
});
});
1 change: 1 addition & 0 deletions spec/observables/forkJoin-spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* globals describe, it, expect, lowerCaseO, hot, expectObservable */
var Rx = require('../../dist/cjs/Rx');
var Observable = Rx.Observable;
var Promise = require('promise');

describe('Observable.forkJoin', function () {
it('should join the last values of the provided observables into an array', function () {
Expand Down
1 change: 1 addition & 0 deletions spec/observables/from-promise-spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* globals describe, it, expect */
var Rx = require('../../dist/cjs/Rx');
var Observable = Rx.Observable;
var Promise = require('promise');

describe('Observable.fromPromise', function () {
it('should emit one value from a resolved promise', function (done) {
Expand Down
1 change: 1 addition & 0 deletions spec/operators/concatAll-spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* globals describe, it, expect, expectObservable, expectSubscriptions, hot, cold */
var Rx = require('../../dist/cjs/Rx');
var Observable = Rx.Observable;
var Promise = require('promise');

describe('Observable.prototype.concatAll()', function () {
it('should concat sources from promise', function (done) {
Expand Down
1 change: 1 addition & 0 deletions spec/operators/debounce-spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* globals describe, it, expect, expectObservable, expectSubscriptions, hot, cold, rxTestScheduler */
var Rx = require('../../dist/cjs/Rx');
var Observable = Rx.Observable;
var Promise = require('promise');

describe('Observable.prototype.debounce()', function () {
function getTimerSelector(x) {
Expand Down
3 changes: 2 additions & 1 deletion spec/operators/mergeAll-spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* globals describe, it, expect, expectObservable, hot, cold */
/* globals describe, it, expect, expectObservable, expectSubscriptions, hot, cold */
var Rx = require('../../dist/cjs/Rx');
var Observable = Rx.Observable;
var Promise = require('promise');

describe('Observable.prototype.mergeAll()', function () {
it.asDiagram('mergeAll')('should merge a hot observable of cold observables', function () {
Expand Down
1 change: 1 addition & 0 deletions spec/operators/throttle-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
var Rx = require('../../dist/cjs/Rx');
var Observable = Rx.Observable;
var Scheduler = Rx.Scheduler;
var Promise = require('promise');

describe('Observable.prototype.throttle()', function () {
it.asDiagram('throttle')('should immediately emit the first value in each time window', function () {
Expand Down

0 comments on commit 05ac8dd

Please sign in to comment.