Skip to content

Commit

Permalink
Move deferredFn to observables as it depends on RxJS (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
goce-cz authored Jun 17, 2021
1 parent b2a01b7 commit 6939024
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Observable, of, Subject } from 'rxjs'
import { latency, deferredFn } from '@spicy-hooks/utils'
import { latency } from '@spicy-hooks/utils'

import { coldFrom } from './cold-from'
import { getSynchronousEmit } from '../utils'
import { deferredFn } from '../testing/deferred-fn'

describe('coldFrom', () => {
it('defers execution until subscribed to', () => {
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions packages/observables/src/testing.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { deferredFn } from './internal/testing/deferred-fn'
export type { DeferredMock } from './internal/testing/deferred-fn'
2 changes: 0 additions & 2 deletions packages/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ export { isShallowEqual } from './internal/is-shallow-equal'
export { latency } from './internal/latency'
export { mergeArrays } from './internal/merge-arrays'
export { isFunction, isTruthy } from './internal/guards'
export { deferredFn } from './internal/deferred-fn'
export type { DeferredMock } from './internal/deferred-fn'
export type { KeyOf } from './internal/keyof'
export type { Nullishable } from './internal/nullishable'

0 comments on commit 6939024

Please sign in to comment.