|
1 | 1 | import * as React from 'react'; |
2 | 2 | import { mount } from 'enzyme'; |
3 | 3 | import '@reactivex/rxjs' |
4 | | -import { Plan, X, pure, map, lift2, lift, lift3, lift4, lift5, concat } from '..' |
| 4 | +import { Plan, X, fromPlan, map, lift2, lift, lift3, lift4, lift5, concat } from '..' |
5 | 5 | import * as rx from '../xs/rx' |
6 | 6 | import { Observable } from '@reactivex/rxjs' |
7 | 7 | import '@reactivex/rxjs/dist/cjs/add/observable/combineLatest' |
@@ -31,7 +31,7 @@ interface CountProps { |
31 | 31 |
|
32 | 32 | let mountx = compose(mount, y => React.createFactory(X)({ x: rx }, y)) |
33 | 33 |
|
34 | | -const fantasyX = pure<rx.URI, Intent, CountProps>((intent$) => { |
| 34 | +const fantasyX = fromPlan<rx.URI, Intent, CountProps>((intent$) => { |
35 | 35 | return { |
36 | 36 | update$: intent$.map((intent) => { |
37 | 37 | switch (intent.type) { |
@@ -153,7 +153,7 @@ describe('actions', () => { |
153 | 153 | describe('concat', () => { |
154 | 154 | let fantasyXB; |
155 | 155 | beforeEach(() => { |
156 | | - fantasyXB = pure<rx.URI, Intent, CountProps>((intent$) => { |
| 156 | + fantasyXB = fromPlan<rx.URI, Intent, CountProps>((intent$) => { |
157 | 157 | return { |
158 | 158 | update$: intent$.map((intent) => { |
159 | 159 | switch (intent.type) { |
@@ -244,7 +244,7 @@ describe('liftN', () => { |
244 | 244 |
|
245 | 245 | beforeEach(() => { |
246 | 246 | let fan = [1, 2, 3, 4, 5]; |
247 | | - Fa = fan.map(i => pure<rx.URI, Intent, CountProps>(intent$ => { |
| 247 | + Fa = fan.map(i => fromPlan<rx.URI, Intent, CountProps>(intent$ => { |
248 | 248 | return { |
249 | 249 | update$: Observable.of(state => ({ count: i })), |
250 | 250 | actions: { |
|
0 commit comments