Skip to content

Commit

Permalink
RouteMatcher test
Browse files Browse the repository at this point in the history
  • Loading branch information
breautek committed Dec 17, 2019
1 parent eb7cdc9 commit df3d516
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/RouteMatcher.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,17 @@ describe('RouteMatcher', () => {
});
});
});

it('can pass vars with dots', (done) => {
var comp = router();
var r = getRouter();
tick(() => {
r.pushState('/page1/123.456.789');
tick(() => {
expect(_instance.getProps().var).toBe('123.456.789');
comp.unmount();
done();
});
});
});
});

0 comments on commit df3d516

Please sign in to comment.