Skip to content

Instantly share code, notes, and snippets.

View mrijk's full-sized avatar

Maurits mrijk

View GitHub Profile
@mrijk
mrijk / index.js
Created June 2, 2015 11:08
RxJS test
var Rx = require('rx');
// Fake Mongo writing
var db = {
insert: function(x) {
console.log('Write to Mongo value impl: ' + x.key);
}
};
'use strict';
var rewire = require('rewire');
var Rx = require('rx');
var RxNode = require('rx-node');
var index = rewire('../index.js');
var mongoStub = {
insert: function(x) {
{
"name": "rxjstest",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",