Last active
February 2, 2016 10:10
-
-
Save real34/78b0023c602869ec26e2 to your computer and use it in GitHub Desktop.
Rx test starter pack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node_modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "rx-rover", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "babel-node test.js | faucet" | |
| }, | |
| "author": "", | |
| "license": "ISC", | |
| "babel": { | |
| "presets": [ | |
| "es2015" | |
| ] | |
| }, | |
| "dependencies": { | |
| "babel-cli": "^6.4.5", | |
| "rx": "^4.0.7", | |
| "tape": "^4.4.0" | |
| }, | |
| "devDependencies": { | |
| "babel-preset-es2015": "^6.3.13", | |
| "faucet": "0.0.1" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tape from 'tape' | |
| import {Observable} from 'rx' | |
| tape('env is setup', t => { | |
| const SUT = Observable.of('toto') | |
| SUT | |
| .tap(name => t.equal(name, 'titi')) | |
| .subscribe(() => t.end()) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment