angular-cn/modules/angular2/test/router/integration
Brian Ford 75343eb340 feat(router): add regex matchers
@petebacondarwin deserves credit for most of this commit.

This allows you to specify a regex and serializer function instead
of the path DSL in your route declaration.

```
@RouteConfig([
  { regex: '[a-z]+.[0-9]+',
    serializer: (params) => `{params.a}.params.b}`,
    component: MyComponent }
])
class Component {}
```

Closes #7325
Closes #7126
2016-03-02 16:08:19 -08:00
..
impl feat(router): add regex matchers 2016-03-02 16:08:19 -08:00
README.md refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
async_route_spec.ts feat(router): support links with just auxiliary routes 2015-12-16 19:50:19 +00:00
auxiliary_route_spec.ts feat(router): support links with just auxiliary routes 2015-12-16 19:50:19 +00:00
bootstrap_spec.ts feat(router): add regex matchers 2016-03-02 16:08:19 -08:00
lifecycle_hook_spec.ts feat(router): add regex matchers 2016-03-02 16:08:19 -08:00
navigation_spec.ts feat(router): add regex matchers 2016-03-02 16:08:19 -08:00
redirect_route_spec.ts feat(router): add regex matchers 2016-03-02 16:08:19 -08:00
router_link_spec.ts feat(router): add regex matchers 2016-03-02 16:08:19 -08:00
sync_route_spec.ts refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
util.ts feat(router): add regex matchers 2016-03-02 16:08:19 -08:00

README.md

Router integration tests

These tests only mock out Location, and otherwise use all the real parts of routing to ensure that various routing scenarios work as expected.

The Component Router in Angular 2 exposes only a handful of different options, but because they can be combined and nested in so many ways, it's difficult to rigorously test all the cases.

The address this problem, we introduce describeRouter, describeWith, and describeWithout.