Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeetiss/callbag-marble-tester
https://github.com/jeetiss/callbag-marble-tester
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jeetiss/callbag-marble-tester
- Owner: jeetiss
- Created: 2018-10-16T14:00:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T12:50:32.000Z (almost 6 years ago)
- Last Synced: 2024-09-16T07:08:30.017Z (17 days ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# callbag-marble-tester
Callbag utils for testing different operators.
## install
```
npm i -D @jeetiss/callbag-marble-tester
```## Example
```js
import map from 'callbag-map'
import pipe from 'callbag-pipe'import { listenable, willBe } from '@jeetiss/callbag-marble-tester'
test('test map operator', () =>
pipe(
listenable('--a--b--c-|'),
map(value => value.toUpperCase()),
willBe('--A--B--C-|'),
))
```