mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-24 20:28:06 +02:00
cargo fmt
This commit is contained in:
parent
bec7bbf96c
commit
3a35cd6c8f
294 changed files with 6809 additions and 3911 deletions
|
|
@ -299,12 +299,7 @@ mod tests {
|
|||
fn detects_app_router_get() {
|
||||
let src = "export async function GET(req: Request) { return new Response('ok'); }\n";
|
||||
let (tree, bytes) = parse(src);
|
||||
let nodes = detect_next_routes(
|
||||
&tree,
|
||||
&bytes,
|
||||
&PathBuf::from("app/users/route.ts"),
|
||||
None,
|
||||
);
|
||||
let nodes = detect_next_routes(&tree, &bytes, &PathBuf::from("app/users/route.ts"), None);
|
||||
assert_eq!(nodes.len(), 1);
|
||||
let SurfaceNode::EntryPoint(ep) = &nodes[0] else {
|
||||
panic!()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue