mirror of
https://github.com/wekan/wekan.git
synced 2026-02-22 07:54:06 +01:00
Switch from kadira:flow-router to ostrio:flow-router-extra
This commit is contained in:
parent
50f3316088
commit
718c1a393d
63 changed files with 52 additions and 4797 deletions
|
|
@ -1,30 +0,0 @@
|
|||
Router = FlowRouter.Router;
|
||||
|
||||
Tinytest.addAsync('Common - Addons - onRouteRegister basic usage', function (test, done) {
|
||||
var name = Random.id();
|
||||
var customField = Random.id();
|
||||
var pathDef = '/' + name;
|
||||
|
||||
FlowRouter.onRouteRegister(function(route) {
|
||||
test.equal(route, {
|
||||
pathDef: pathDef,
|
||||
|
||||
// Route.path is deprecated and will be removed in 3.0
|
||||
path: pathDef,
|
||||
|
||||
name: name,
|
||||
options: {customField: customField}
|
||||
});
|
||||
FlowRouter._onRouteCallbacks = [];
|
||||
done();
|
||||
});
|
||||
|
||||
FlowRouter.route(pathDef, {
|
||||
name: name,
|
||||
action: function() {},
|
||||
subscriptions: function() {},
|
||||
triggersEnter: function() {},
|
||||
triggersExit: function() {},
|
||||
customField: customField
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue