mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00

Fixes: #5533
Fixes: #5548
Revert "Switch from kadira:flow-router to ostrio:flow-router-extra"
This reverts commit 718c1a393d
.
15 lines
351 B
JavaScript
15 lines
351 B
JavaScript
Router = FlowRouter.Router;
|
|
|
|
Tinytest.addAsync('Common - Route - expose route options', function (test, next) {
|
|
var pathDef = "/" + Random.id();
|
|
var name = Random.id();
|
|
var data = {aa: 10};
|
|
|
|
FlowRouter.route(pathDef, {
|
|
name: name,
|
|
someData: data
|
|
});
|
|
|
|
test.equal(FlowRouter._routesMap[name].options.someData, data);
|
|
next();
|
|
});
|