Skip to content

Commit 4931860

Browse files
authored
Merge pull request #637 from kwonoj/fix-getmessages-type
2 parents 6cca4e7 + b30e442 commit 4931860

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## [2.0.1](https://github.com/kwonoj/rx-sandbox/compare/v2.0.0...v2.0.1) (2021-05-18)
2+
3+
4+
### Bug Fixes
5+
6+
* **getmessages:** update return type ([c2037bd](https://github.com/kwonoj/rx-sandbox/commit/c2037bd5048facab8d497dabee06221b03d82494))
7+
8+
9+
110
# [2.0.0](https://github.com/kwonoj/rx-sandbox/compare/v2.0.0-beta.3...v2.0.0) (2021-05-18)
211

312

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# RxSandbox
66

77
`RxSandbox` is test suite for RxJS, based on marble diagram DSL for easier assertion around Observables.
8-
For RxJS 5 support, check pre-1.x versions. 1.x supports latest RxJS 6.x. 2.0.0-beta.* is available to support latest `rxjs@7.x` beta version.
8+
For RxJS 5 support, check pre-1.x versions. 1.x supports latest RxJS 6.x. 2.* is available to support `rxjs@7.0.1` and above.
99

1010
## What's difference with `TestScheduler` in RxJS?
1111

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rx-sandbox",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Marble diagram DSL based test suite for RxJS 6",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/scheduler/createTestScheduler.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,14 @@ function getSchedulerFlushFunctions(state: SandboxState, flushWithAsyncTick: boo
226226
return { flushUntil, advanceTo };
227227
}
228228

229-
type getMessages = <T = string>(observable: Observable<T>, unsubscriptionMarbles?: string | null) => void;
229+
type getMessages = <T = string>(
230+
observable: Observable<T>,
231+
unsubscriptionMarbles?: string | null
232+
) => Array<TestMessage<T | Array<TestMessage<T>>>>;
230233
type getMessagesWithTick = <T = string>(
231234
observable: Observable<T>,
232235
unsubscriptionMarbles?: string | null
233-
) => Promise<void>;
236+
) => Promise<Array<TestMessage<T | Array<TestMessage<T>>>>>;
234237

235238
/**
236239
* create getMessages function. Depends on flush, this'll either work asynchronously or synchronously.

0 commit comments

Comments
 (0)