Skip to content

Commit 15c8475

Browse files
committed
test(routerify): Convert rxjs tests
1 parent 7b7096b commit 15c8475

File tree

3 files changed

+201
-173
lines changed

3 files changed

+201
-173
lines changed

src/routerify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function routerify(main: (a: any) => any, routeMatcher: RouteMatcher, basename =
2121
}
2222
const createHref = (location: Location) => basename + createPath(location);
2323
return function(sources: any): any {
24-
const routerSource = new RouterSource(sources[historyName], [], createHref, routeMatcher);
24+
const routerSource = new RouterSource(xs.from(sources[historyName]), [], createHref, routeMatcher);
2525
const sinks = main({ ...sources, [routerName]: routerSource });
2626
return {
2727
...sinks,

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
//import './rxjs';
1+
import './rxjs';
22
import './xstream';

0 commit comments

Comments
 (0)