mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-26 19:04:13 +08:00
Added tests for static functions.
This commit is contained in:
@@ -54,4 +54,24 @@ routie("users/12312312");
|
||||
routie("*", function () {
|
||||
});
|
||||
|
||||
routie("anything");
|
||||
routie("anything");
|
||||
|
||||
// STATIC
|
||||
|
||||
// Lookup
|
||||
var existing = routie.lookup("users/bob", () => {
|
||||
});
|
||||
|
||||
// Remove
|
||||
routie.remove("users/bob", () => {
|
||||
});
|
||||
|
||||
// RemoveAll
|
||||
routie.removeAll();
|
||||
|
||||
// Navigate
|
||||
routie.navigate("users/bob");
|
||||
routie.navigate("users/bob", { silent: true });
|
||||
|
||||
// NoConflict
|
||||
var myRoutie = routie.noConflict();
|
||||
|
||||
Reference in New Issue
Block a user