Skip to content

Commit

Permalink
chore(tests): add lowerCaseO observable test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Sep 23, 2015
1 parent d332a0e commit 4d37812
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion spec/helpers/test-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,25 @@ function assertDeepEqual(actual, expected) {


global.__root__ = _root;
}());
}());



global.lowerCaseO = function lowerCaseO() {
var values = [].slice.apply(arguments);

var o = {
subscribe: function(observer) {
values.forEach(function(v) {
observer.next(v);
});
observer.complete();
}
};

o[Symbol.observable] = function (){
return this;
}

return o;
}

0 comments on commit 4d37812

Please sign in to comment.