Skip to content

Instantly share code, notes, and snippets.

@real34
Last active February 2, 2016 10:10
Show Gist options
  • Save real34/78b0023c602869ec26e2 to your computer and use it in GitHub Desktop.
Save real34/78b0023c602869ec26e2 to your computer and use it in GitHub Desktop.
Rx test starter pack
node_modules
{
"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"
}
}
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