Extra test case

pull/991/head
Rick Carlino 2018-09-21 09:18:29 -05:00
parent d1be7c4817
commit 2af7876c0e
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,11 @@ type Info = UnboundRouteConfig<{}, {}>;
function mapper(bind_to: Function, index: number) {
return bind_to((x: ConnectedComponent, y: ConnectedComponent | undefined, z: Info) => {
if (z.$ == "*") {
expect(x.WrappedComponent.name).toEqual("FourOhFour");
return;
}
expect(index).toBeGreaterThan(-1);
expect(x.name).toBe("Connect");
expect(x.WrappedComponent.name).toContain(z.key);