wekan/packages/kadira-flow-router/test/common/router.url.spec.js
Lauri Ojansivu 73e265d8fd Include to Wekan packages directory contents, so that meteor command would build all directly.
This also simplifies build scripts.

Thanks to xet7 !
2019-04-20 15:18:33 +03:00

11 lines
320 B
JavaScript

Tinytest.add('Common - Router - url - generic', function (test) {
var pathDef = "/blog/:blogId/some/:name";
var fields = {
blogId: "1001",
name: "superb"
};
var expectedUrl = Meteor.absoluteUrl('blog/1001/some/superb');
var path = FlowRouter.url(pathDef, fields);
test.equal(path, expectedUrl);
});